We are bouncing into "Connection refused" errors in our application despite having limit in Cloud SQL high enough.
I found this error in Cloud-run error log:
"Exceeded maximum of 100 connections per instance for CLOUD_SQL_INSTANCE_NAME."
logName: "projects/PROJECT_ID/logs/run.googleapis.com%2Fvarlog%2Fsystem"
Our Cloud SQL (MySQL 8) is being run with this VM: db-n1-standard-1 and it has max_connections variable set 4030 (this is the default) so I guess the restriction is not coming from the database itself.
In documentation there is no mention of any limitation of Cloud SQL connections from Cloud Run side, just the general one enforced by database itself.
Am I missing anything? Is it a bug or undocumented feature? Thanks for any answer!