Make total_shards_per_node configurable

Add support for index.routing.allocation.total_shards_per_node in the
elasticsearch.yml.erb template. This value sets the total number of
shards across all indices to store on any single node. A value of -1
specifies unlimited shards.

Change-Id: I8a7472fb8daf97015d47ab33476b78779e762dbe
This commit is contained in:
K Jonathan Harker 2016-03-11 12:30:52 -08:00
parent a3745ab6ee
commit 0733bdc394
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ indices.memory.index_buffer_size: "<%= @es_template_config['indices.memory.index
<% if @es_template_config.has_key?('indices.breaker.fielddata.limit') then -%>
indices.breaker.fielddata.limit: "<%= @es_template_config['indices.breaker.fielddata.limit'] %>"
<% end -%>
<% if @es_template_config.has_key?('index.routing.allocation.total_shards_per_node') then -%>
index.routing.allocation.total_shards_per_node: "<%= @es_template_config['index.routing.allocation.total_shards_per_node'] %>"
<% end -%>
#################################### Paths ####################################