Change index settings customization advice to recommend custom templates

Rather than changing the default one.
This commit is contained in:
Boaz Leskes 2014-01-31 10:00:01 +01:00
parent 3d9d12ebf3
commit b6a8fd73a4

View file

@ -39,7 +39,7 @@ an index per day, with one shard and one replica. We expect this to be a good
default which will fit most use cases. You may need to change it for very big
installations.
==== The Marvel index template
==== Configuring Marvel's indices
Marvel uses an {ref}/indices-templates.html[index template] to preconfigure newly created indices. You can retrieve it with:
@ -48,18 +48,26 @@ Marvel uses an {ref}/indices-templates.html[index template] to preconfigure newl
GET /_template/marvel
----------------------------------
then make changes, and update it with:
To change the default settings, you may add your own template to override it. Make sure your template uses
the `.marvel-*` matching pattern and has an order of 1 or higher. For example, this template will increase the
number of shards to 5:
[source,json]
----------------------------------
PUT /_template/marvel
{ ... new template }
PUT /_template/custom_marvel
{
"template": ".marvel*",
"order": 1
"settings": {
"number_of_shards": 5
}
}
----------------------------------
IMPORTANT: We recommend only changing the `settings` section. Other sections are
important for the correct operation of the dashboards.
Here are the default `settings`:
For reference, here is the `settings` section of the default template:
[source,json]
----------------------------------