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: Increase threadpool count to avoid deadlocks #1391

Merged
merged 3 commits into from
Jul 18, 2023
Merged

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Jul 18, 2023

To refresh a Cloud SQL Instance's certificates, the current algorithm uses 2 threads from the thread pool for each
instance. Because the thread pool is fixed size, if a user configures 2 or more instances, they were at risk of a causing
thread starvation and a deadlock.

This increases the thread count to a safe level so that most users will never experience a deadlock.

Fixes #1314

@hessjcg hessjcg requested a review from a team as a code owner July 18, 2023 15:43
@hessjcg hessjcg requested a review from enocom July 18, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bad_certificate errors intermittently preventing connection to cloud sql
2 participants