-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use lazy refresh for AlloyDB and Cloud SQL Connector (#429)
The Cloud SQL Python Connector just released a new version `v1.10.0`, same with AlloyDB Python Connector `v1.2.0` that support setting the `refresh_strategy` argument of the connector. Setting the refresh strategy to lazy refresh is recommended for serverless environments. As the default refresh strategy is to have background refreshes occur to get the instance metadata and a fresh certificate to use for the SSL/TLS connection. However, these background refreshes can be throttled when serverless environments scale to zero (Cloud Functions, Cloud Run etc.). This PR will fix the ambiguous errors that are a result of the CPU being throttled for connectors.
- Loading branch information
1 parent
41f3bb7
commit c73484d
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters