Security/Watcher: Increase index priority for indices (elastic/elasticsearch#3709)

The `.triggered-watches`, `.watches` and `.security` indices should load
as early as possible, and not wait for other indices (especially not
for time-based indices, that are old).

This commit adds an index.priority to the template for those indices.
The values 1000, 900 and 800 were chosen rather arbitrary, mainly we
did not want to go with 10, because it was used in the sample documentation.

Security should always be loaded first, because we might need this index for
other operations.

Any administrator can still change all the values in the indices, but this
cares for better defaults.

Original commit: elastic/x-pack-elasticsearch@6ed0fb7975
This commit is contained in:
Alexander Reelsen 2016-10-19 11:14:47 +02:00 committed by GitHub
parent 0228a94d80
commit 1c3baa61fe
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@
"number_of_shards" : 1,
"number_of_replicas" : 0,
"auto_expand_replicas" : "0-all",
"index.priority": 1000,
"analysis" : {
"filter" : {
"email" : {

View File

@ -4,7 +4,8 @@
"settings": {
"index.number_of_shards": 1,
"index.mapper.dynamic" : false,
"index.refresh_interval" : "-1"
"index.refresh_interval" : "-1",
"index.priority": 900
},
"mappings": {
"triggered_watch": {

View File

@ -3,7 +3,8 @@
"order": 2147483647,
"settings": {
"index.number_of_shards": 1,
"index.mapper.dynamic" : false
"index.mapper.dynamic" : false,
"index.priority": 800
},
"mappings": {
"watch": {