-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix index refresh interval setting for stateless #96800
Fix index refresh interval setting for stateless #96800
Conversation
The behavior of the refresh interval setting for fast refresh indices is the same as in stateful. Default is 1 sec. Non fast refresh indices have a default and minimum of 5sec refresh interval. Can be disabled (-1). Relates ES-6244
Pinging @elastic/es-distributed (Team:Distributed) |
Hi @Tim-Brooks , @henningandersen . Made a PR that sets the refresh interval correctly also for stateless. Unfortunately in order for stateless CI to work (see accompanying PR), I had to remove some explicit settings which to my eyes seemingly just set the default value. I am not certain this is a problem for core (CI passes), but feel free to suggest any additional reviewing we may need to do or any other ways forward (could not think of something simple). |
Test failed is #96805 @elasticmachine please run elasticsearch-ci/part-3 |
For realizing whether we are in stateless
The behavior of the refresh interval setting for fast refresh indices is the same as in stateful. Default is 1 sec.
Non fast refresh indices have a default and minimum of 5sec refresh interval. Can be disabled (-1).
Also add a new allowSearchIdleOptimization() function in Engines that can help disallowing the search idle optimization for scheduled refreshes.
Relates ES-6244