Skip to content

Add doc for allowing -1 index.search.idle.after - #12992

Open
tonklable wants to merge 1 commit into
opensearch-project:mainfrom
tonklable:idleafter_negative
Open

Add doc for allowing -1 index.search.idle.after#12992
tonklable wants to merge 1 commit into
opensearch-project:mainfrom
tonklable:idleafter_negative

Conversation

@tonklable

@tonklable tonklable commented Aug 28, 2026

Copy link
Copy Markdown

Description

Currently, OpenSearch sets index.search.idle.after to 30s by default. To disable idle time, there is only one way, to set index.refresh_interval explicitly. However, index.refresh_interval is 1s by default, and we did not want to change it. It is not a good convention to set one variable explicitly for a different behavior (disabling idle).

-1 is a standard convention to disable something, so this PR is to allow -1 for index.search.idle.after in order to disable idle time.

Related to opensearch-project/OpenSearch#22873

Issues Resolved

Closes opensearch-project/OpenSearch#9707 (comment)

Version

List the OpenSearch version to which this PR applies, e.g. 2.14, 2.12--2.14, or all.

Frontend features

If you're submitting documentation for an OpenSearch Dashboards feature, add a video that shows how a user will interact with the UI step by step. A voiceover is optional.

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Natprawee Pattayawij <tonklalor2544@gmail.com>
@github-actions

Copy link
Copy Markdown

Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Merged.

Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer.

When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tech review PR: Tech review in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase index.search.idle.after setting default from 30s to 10 minutes (or more)

2 participants