Skip to content

fix: use lazy refresh for Cloud SQL Connector#86

Merged
averikitsch merged 1 commit into
mainfrom
lazy-refresh-connector
Jul 2, 2024
Merged

fix: use lazy refresh for Cloud SQL Connector#86
averikitsch merged 1 commit into
mainfrom
lazy-refresh-connector

Conversation

@jackwotherspoon

Copy link
Copy Markdown
Contributor

The Cloud SQL Python Connector just released a new version v1.10.0
that supports 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 the Cloud SQL Connector.

@jackwotherspoon jackwotherspoon self-assigned this Jun 26, 2024
@jackwotherspoon jackwotherspoon requested review from a team June 26, 2024 20:10
@product-auto-label product-auto-label Bot added the api: cloudsql-mysql Issues related to the googleapis/langchain-google-cloud-sql-mysql-python API. label Jun 26, 2024
@averikitsch averikitsch merged commit 58591d5 into main Jul 2, 2024
@averikitsch averikitsch deleted the lazy-refresh-connector branch July 2, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudsql-mysql Issues related to the googleapis/langchain-google-cloud-sql-mysql-python API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants