Set security index refresh interval to 1s (#45888)

The security indices were being created without specifying the
refresh interval, which means it would inherit a value from any
templates that exists.
However, certain security functionality depends on being able to
wait_for refresh, and causes errors (e.g. in Kibana) if that time
exceeds 30s.

This commit changes the security indices configuration to always be
created with a 1s refresh interval. This prevents any templates from
inadvertantly interfering with the proper functioning of security.
It is possible for an administrator to explicitly change the refresh
interval after the indices have been created.

Backport of: #45434
This commit is contained in:
Tim Vernum 2019-08-23 12:41:37 +10:00 committed by GitHub
parent 243f054b0b
commit f94e4a9151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
"number_of_replicas" : 0,
"auto_expand_replicas" : "0-1",
"index.priority": 1000,
"index.refresh_interval": "1s",
"index.format": 6,
"analysis" : {
"filter" : {

View File

@ -6,6 +6,7 @@
"number_of_replicas" : 0,
"auto_expand_replicas" : "0-1",
"index.priority": 1000,
"index.refresh_interval": "1s",
"index.format": 7
},
"mappings" : {