The path.data settings can be set to multiple paths, in which case all paths will be used to store data (although the files belonging to a single shard will all be stored on the same data path):
path:
data:
- /mnt/elasticsearch_1
- /mnt/elasticsearch_2
- /mnt/elasticsearch_3
Attempting to use a list produces the following output:
[CRITICAL] Rendering SLS 'base:elasticsearch.config' failed: while constructing a mapping
in "<unicode string>", line 1, column 1:
include:
^
found unacceptable key [ScalarNode(tag='tag:yaml.org,2002:str', value='/usr/shar
in "<unicode string>", line 17, column 1:
['/usr/share/elasticsearch/data' ...
^
local:
Data failed to compile:
----------
Rendering SLS 'base:elasticsearch.config' failed: while constructing a mappi
in "<unicode string>", line 1, column 1:
include:
^
found unacceptable key [ScalarNode(tag='tag:yaml.org,2002:str', value='/usr/shar
in "<unicode string>", line 17, column 1:
['/usr/share/elasticsearch/data' ...
^
Elasticsearch docs support multiple data paths.
See: https://www.elastic.co/guide/en/elasticsearch/reference/master/path-settings.html
Attempting to use a list produces the following output: