From 0733bdc3948e6c53725ca7bd70b029166568bdef Mon Sep 17 00:00:00 2001 From: K Jonathan Harker Date: Fri, 11 Mar 2016 12:30:52 -0800 Subject: [PATCH] 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 --- templates/elasticsearch.yml.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/elasticsearch.yml.erb b/templates/elasticsearch.yml.erb index 0c3e0a4..7701be9 100644 --- a/templates/elasticsearch.yml.erb +++ b/templates/elasticsearch.yml.erb @@ -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 ####################################