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

Add config on query loop execution frequency #411

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

noCharger
Copy link
Collaborator

@noCharger noCharger commented Jul 4, 2024

Description

With default query loop execution frequency there are 3 min session idle time and 30000 / 100 = 300 additional calls to check queries waiting in the loop.

For example, on sanity IT, there are 5000 / 100 = 50 calls theoretically, and in actuality 47 calls due to the actual query execution time.

FlintREPL: read from flint_ql_sessions, sessionId: 10

On new IT "query loop should exit with inactivity timeout due to large query loop frequency," there should be no subsequent calls because the loop waits 5 seconds, which is deemed inactivity.

Issues Resolved

#397

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

@noCharger noCharger force-pushed the query-loop-freq branch 2 times, most recently from fc027c7 to cc07c77 Compare August 6, 2024 18:13
@noCharger noCharger marked this pull request as ready for review August 6, 2024 20:14
Copy link
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check CI failure on REPL suite.

@dai-chen dai-chen added enhancement New feature or request 0.5 labels Aug 6, 2024
@noCharger noCharger force-pushed the query-loop-freq branch 3 times, most recently from aa6b51e to 7e5db68 Compare August 6, 2024 23:27
Copy link
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes!

@noCharger noCharger merged commit 5be9be6 into opensearch-project:main Aug 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.5 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants