How many disks are used by one shard?

question1(http://stackoverflow.com/questions/36737023/elasticsearchhow-to-make-a-balance-of-the-usage-of-disk?noredirect=1#comment61059094_36737023) tells me: the shards' files are all allocated on one path only and not spread on all paths. And ES will not try to balance the files between paths.

question2 tells me:if you define more than one location (one per disk for example) it will use both disks and will benefit from the increased IOPS.

I am confused..

I just want to make the usage of the disk are almost equal.

Hi,

before 2.0, if the 'path.data setting' listed multiple data paths, then a shard would be “striped” across all paths by writing a whole file to each path in turn. This had several problems which are explained in detail in this issue:

So starting with 2.0 this is no longer supported. Instead all of the files in a single shard will be written to the same path:

https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_multiple_literal_data_path_literal_striping.html

1 Like