Unexpected connection rate limit

Hi,

We are migrating from an old MySQL instance to a recent MySQL version on Cloud SQL.

However, the new instance does not behave the same with regard to connections.

I wrote a small shell script to isolate the issue from our application stack.

The script simply loops over a mysql command-line connection and executes a very simple and fast query.

  • When connecting to the old (current) server, the script runs flawlessly.
  • With the new server, after every 64 connections, Cloud SQL refuses new connections for about 120 seconds.

This does not appear to be a MySQL connection limit: monitoring shows only about 15 simultaneous connections on the server.

It seems like the new Cloud SQL instance enforces some kind of connection rate limit, but we cannot find any information about this in the admin UI or the documentation.

Does anyone know what might cause this behavior, or how to disable/adjust this connection rate restriction?

Thanks!