on-internet
← Community

Cloud Run built-in Cloud SQL connection drops all pooled connections at once every few hours, but Auth Proxy sidecar doesn't

Stack Overflow ·

Setup: Cloud Run service (Node.js, mysql2 pool, TCP keep-alive on) connecting to Cloud SQL for MySQL 8.4 (europe-west2) through the built-in connection (--set-cloudsql-instances, unix socket /cloudsql/...). Problem: Since mid-November, several times a day (about every 6 to 13 hours, at irregular times), every pooled connection closes at the same moment. Queries in flight fail with PROTOCOL_CONNECTION_LOST ("The server closed the connection"). On the client the close is a graceful end (via=end), not a reset or a timeout. Server log, for each burst, for every connection within a few ms: Aborted

Comments

Sign in or sign up to comment and upvote.

No comments yet.