Skip to content

Commit

Permalink
Set security index refresh interval to 1s (#45434)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tvernum committed Aug 19, 2019
1 parent e7a8585 commit 0b163ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"number_of_replicas" : 0,
"auto_expand_replicas" : "0-1",
"index.priority": 1000,
"index.refresh_interval": "1s",
"index.format": 7
},
"mappings" : {
Expand Down

0 comments on commit 0b163ab

Please sign in to comment.