Cloud SQL MySQL does not explicitly specify the swap space limit for Cloud SQL instances. The swap space is managed by Google Cloud and is not directly exposed or configurable by users.
-
The exact swap space limit size is not publicly documented by Google. It’s managed internally by Google Cloud.
-
Google Cloud manages the swap space automatically, but it doesn’t necessarily increase the limit automatically. The swap space is used when the system requires more memory than it is physically available.
If you’re consistently seeing high swap usage, it might be an indicator that your instance is under-provisioned. You might need to increase the size of your Cloud SQL instance or optimize your database queries and connections to reduce memory usage.
For monitoring, while there might not be a direct metric for swap space, you can monitor “Memory usage” and “CPU usage” which can give you an idea about the resource usage and if your instance is under stress.