Skip to content
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

Closed

Conversation

kingherc
Copy link
Contributor

@kingherc kingherc commented Jun 13, 2023

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

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
@kingherc kingherc added >non-issue :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. labels Jun 13, 2023
@kingherc kingherc self-assigned this Jun 13, 2023
@kingherc kingherc marked this pull request as ready for review June 13, 2023 20:13
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@kingherc
Copy link
Contributor Author

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).

@kingherc
Copy link
Contributor Author

Test failed is #96805

@elasticmachine please run elasticsearch-ci/part-3

@kingherc kingherc closed this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants