Automatically expand replica numbers for Kibana index

The patch uses 'auto_expand_replicas' setting to automatically expand the
number of replicas based on the number of nodes in the cluster.
This setting ensures HA for Kibana dashboards (if enough nodes are deployed).
Because dashboards are only few kilobytes they are duplicated on all
nodes available by specifying the range '0-all'.

Fixes-bug: #1536689

DocImpact

Change-Id: I2643a9e7a18091201ee205149a7316d00acb00ca
This commit is contained in:
Swann Croiset 2016-01-25 14:11:39 +01:00
parent 2246dfe3c0
commit 88e88927f3
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"settings": {
"number_of_shards": <%= @number_of_shards %>,
"number_of_replicas": <%= @number_of_replicas %>
"auto_expand_replicas": "0-all"
},
"template": "<%= @index_prefix %>-*"
}