Google Cloud SQL

Pricing

Google offers two billing plans for Google Cloud SQL: Packages and Per Use. More details about these plans are given below. If you have more questions, check the FAQs, or ask the question on Stack Overflow.

Packages Billing Plan

The following packages are available:

Tier RAM Included Storage Max Storage more info Included I/O per Day Charge per Day Maximum Concurrent Connections & Queries
D0 0.125GB 0.5GB 500GB 200K $0.36 25
D1 0.5GB 1GB 500GB 850K $1.46 100
D2 1GB 2GB 500GB 1.7M $2.93 200
D4 2GB 5GB 500GB 4M $5.86 400
D8 4GB 10GB 500GB 8M $11.71 800
D16 8GB 10GB 500GB 16M $23.42 1600
D32* 16GB 10GB 500GB 32M $46.84 3200
*Currently not available in the EU or Asia regions.

Each instance tier comes with the RAM shown above, along with an appropriate amount of CPU. You can change an instance's tier at any time, with just a few seconds of downtime.

Bills are issued monthly, based on the number of days during which the database exists (measured at US Pacific Time). Storage for backups created using the scheduled backup service is not part of the package limits and is not charged. The number of I/O requests to storage made by your database instance depends on your queries, workload and data set. Cloud SQL will cache data in memory to serve your queries efficiently and to minimize the number of I/O requests. Use of storage or I/O over the included quota is charged at the Per Use rate ($0.24 per GB per month for storage, $0.10 per Million of I/Os).

Storage Size

Storage is measured as the filespace used by the MySQL database. The size of all instances is limited to 250GB by default. Note that you only pay for the storage that you use, so you don’t need to reserve this storage in advance. If you require more storage, up to 500GB, then it is possible to increase limits for individual instances for customers with a silver Google Cloud support package.

A newly created database uses about 50MB of space for system tables.

Per Use Billing Plan

The following resources are available, charged per use:

Resource Charge
D0 Database Instance (0.125GB RAM) $0.025 per hour
D1 Database Instance (0.5GB RAM) $0.10 per hour
D2 Database Instance (1GB RAM) $0.19 per hour
D4 Database Instance (2GB RAM) $0.38 per hour
D8 Database Instance (4GB RAM) $0.77 per hour
D16 Database Instance (8GB RAM) $1.54 per hour
D32* Database Instance (16GB RAM) $3.08 per hour
1GB Storage $0.24 per month
I/O $0.10 per Million
*Currently not available in the EU or Asia regions.

  • The maximum concurrent connections & queries allowed for each tier is the same as for the Packages Billing Plan.
  • Use of database instances is charged for periods of continuous use, rounded up to the nearest hour (see the FAQ for more details).
  • Storage is charged per GB in hourly units (whether the database is up or not) measured as the largest number of bytes during that one hour period, rounded up to the nearest GB. Storage for backups created using the scheduled backup service is not charged.
  • The default and maximum storage for an instance are the same as the Packages Billing Plan (see Storage Size).
  • You can change an instance's tier at any time, with just a few seconds of downtime.
  • The number of I/O requests to storage made by your database instance depends on your queries, workload and data set. Cloud SQL will cache data in memory to serve your queries efficiently and to minimize the number of I/O. I/Os are rounded up to the nearest million. Queries that do not access storage are not charged for I/Os.

Network Use

Resource Charge
External Outbound Traffic $0.12 per GB

Network use is charged for both packages and per use billing plans. Only outbound external traffic is charged, such as traffic to an admin or reporting tool or application hosted outside of the Google cloud. Network usage between Google App Engine applications, Google Compute Engine, or Google Cloud Storage and Cloud SQL are not charged.

Instance IP addresses

The use of an external IP address for instances on the per use billing plan is charged at $0.01 per hour for the time that the connection is idle.

Instances per Project

You can create up to 30 instances per project. Deleted instances do not count toward the 30 instance limit. You can request that the instance limit be raised for a project.

Examples of Per Use Billing

If you want to just try out the service with a test application that is only used for 10 hours every week, with less than 1GB of data and 0.125GB of RAM, and less than 1M I/Os, then you will be charged:

40 hours x $0.025 for use of the database instance
+ 1GB x $0.24 for data storage
+ 1M I/Os x $0.10
= $1.34 per month

If your application uses a database with 1GB RAM, that contains 3.7GB of data, and which is used exclusively during business hours (ie 160 hours per month), with queries resulting in 10 I/Os per second, and where a 0.5GB report is extracted every month to your own computer, then you will be charged:

160 hours x $0.19 for use of the database instance
+ 4GB x $0.24 for data storage
+ 0.5GB x $0.12 for traffic
+ 5.8M I/Os x $0.10
= $32.00 per month

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.