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

oncall: limit HistoryBySchedule to 3 concurrent calls #3334

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

mastercactapus
Copy link
Member

Description:
This PR introduces a mechanism to throttle concurrent history queries, preventing the exhaustion of the database connection pool. This is accomplished by introducing a histLim channel to limit the number of concurrent operations.

Additional Info:
The added code limits the concurrent history queries to a maximum of 3. This is to ensure that the database connection pool is not overwhelmed, especially given that these operations can be expensive and may hold a transaction open for extended periods.

@Forfold
Copy link
Contributor

Forfold commented Oct 4, 2023

I'm going to test this by pulling into my branch on #3231 and see if the issue is resolved

@mastercactapus mastercactapus merged commit 47df50f into master Oct 5, 2023
@mastercactapus mastercactapus deleted the limit-concurrent-history-queries branch October 5, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants