Pricing and Access Limits

When connecting to Google Cloud SQL from Google App Engine, consider pricing and limits for both.

For instructions on how to connect to Cloud SQL, see Using Cloud SQL.

Cloud SQL

For information on Cloud SQL billing plans and limits, see the Cloud SQL Pricing page and the Cloud SQL FAQ.

There are limits imposed from both Cloud SQL and App Engine.

Cloud SQL instances limits

Limit First Generation instances Second Generation instances Notes
Concurrent connections Determined by tier 4,000
Enqueued connection requests 100 N/A First Generation instances only. Incoming connection requests are briefly queued before the connection is established. The queue can accept only 100 incoming connection requests.
Storage size 250 GB Determined by machine type It is possible to increase individual First Generation instance limits up to 500 GB for customers with a Silver or higher Google Cloud support package.

The connection limits are in place to protect against accidents and abuse. For questions about increasing these values, contact the cloud-sql@google.com team.

For information on Cloud SQL billing plans and limits, see the Cloud SQL Pricing page.

App Engine

Requests from Google App Engine applications to Google Cloud SQL are subject to the following time and connection limits:

  • All database requests must finish within the HTTP request time limit, which is around 60 seconds.
  • Offline requests such as cron tasks have a time limit of 10 minutes.
  • Requests to Google Cloud SQL have limitations based on the scaling type of the App Engine module and how long an instance can remain in memory (residence).
  • Each App Engine instance running in a standard environment cannot have more than 12 concurrent connections to a Google Cloud SQL instance.

App Engine applications are also subject to the App Engine quotas.

Send feedback about...

App Engine standard environment for Python