Skip to content
dbexplore

FinOps · Google Cloud SQL

Cloud SQL cost optimization: what high availability doubles, storage that stayed grown, and commitments nobody claimed.

Cloud SQL prices the whole instance twice when it has a standby, keeps the storage it grew, and discounts compute you can prove is steady. This is the FinOps view of those three.

A bill made of settings chosen once

High availability doubled the bill. Storage only ever grows. Nobody claimed the commitments. Each of those sentences is a setting somebody chose on the day an instance was created, and each has stayed on the invoice every month since. None of them says anything about how busy the database is. A quiet staging instance with a standby costs twice what it would without one, and a production instance can carry a terabyte of storage that nothing reads.

The second sentence is nearly true, and the nuance is where the money is. Google documents automatic storage increases as permanent, so capacity added during a spike does not come back on its own. It also documents a manual shrink, which needs downtime. The gap between the two is a recurring cost that depends on whether anyone looks. This page is the Cloud SQL chapter of Postgres FinOps. How the platform reads Cloud Monitoring and Cloud Logging next to the queries is on the Cloud SQL solutions page, and the method shared by every platform is in the cost optimization overview.

How Cloud SQL meters a month

Compute is billed for as long as the instance runs, at a rate set by its CPU, its memory and its edition. The edition is a pricing tier, chosen per instance, and for PostgreSQL 16 and later the default is the higher one. Storage is billed on the capacity allocated to the instance. Two settings multiply the instance line: high availability, which Google prices at twice a standalone instance, and every read replica, which is charged as an instance of its own.

One discount sits on top. A committed use discount is a fixed dollars-per-hour promise for one or three years, and it applies to CPU and memory in the region you committed in. Nothing in the table below is a price. It is what each line counts and how it behaves when you change something.

  • CPU and memory

    Behaviour
    metered
    What it means for the bill
    Charged while the instance runs, and the edition the instance sits in is a pricing tier of its own. Stopping an instance suspends instance charges; storage and IP addresses keep billing.
  • High availability

    Behaviour
    multiplies
    What it means for the bill
    An instance configured for high availability, also called a regional instance, costs twice as much as a standalone one. Google states that the price includes CPU, memory and storage.
  • Read replicas

    Behaviour
    multiplies
    What it means for the bill
    Charged at the same rate as a standalone instance. The replication itself carries no charge, and a replica in another region adds cross-region transfer for the logs sent to it.
  • Storage capacity

    Behaviour
    metered
    What it means for the bill
    The capacity allocated to the instance affects what it costs. Automatic increases are permanent; shrinking is a separate, manual operation that needs downtime.
  • Committed use discount

    Behaviour
    flat
    What it means for the bill
    A commitment in dollars per hour of on-demand-equivalent spend, for one or three years, covering CPU and memory in the committed region. Usage above it is charged on demand, and a purchased commitment cannot be cancelled.
  • Extended support

    Behaviour
    metered
    What it means for the bill
    A major version past end of life is charged per vCPU per hour on top of the instance price. Committed use discounts do not apply to it.

The standby, priced as the half it is

A high-availability instance has a primary and a standby in another zone, with writes replicated synchronously to both before a transaction commits. When the primary fails, the standby takes over. That protection is worth having on the databases that cannot wait for a restart, and Google prices it plainly: twice the standalone instance, covering CPU, memory and storage.

What the invoice cannot show is which instances should be paying it. The instance table puts every instance in one list with its cost, the standby inside it. Replicas appear as the instances they are. A replica can have high availability turned on too, and then pays the multiplier on top of its own rate. The question to ask of each row is what that instance has to survive, and nothing is turned off by itself.

The high-availability multiplier

illustrative basisyour rate

Four instances in one project, each with a standby. The standby is about half of what its instance costs.

Standby share of an instance’s cost

about half

Modeled cost of high availability, whole project

about $2.8k a month

your rate

Storage grown against storage used

Cloud SQL can add storage by itself. When available space falls below a threshold the instance grows, and keeps growing while the shortage repeats. That keeps a database online through a spike, which is the point, and it also means the capacity on the invoice is the capacity of the worst day. The automatic increase is permanent. Nothing hands the space back when the spike is over.

The distance between the capacity allocated and what is used today is slack you are paying to allocate. A shrink takes downtime, and Google suggests moving to a new, smaller instance when downtime is tight. A replica has to follow its primary, because it can never have less storage than the instance it replicates.

How much steady compute a commitment would cover

A commitment is the only discount in this chapter, and it is the one that punishes a wrong guess. You promise an amount per hour, measured against what the same usage would cost on demand, for one or three years. Usage inside the promise is discounted. Usage above it is charged on demand. A commitment you bought and cannot use cannot be cancelled, so the useful question is how much compute ran all month, in each region, and not how much ran on average.

Steady compute is counted per region because that is how the discount is scoped, and it applies to CPU and memory only. Only compute that has run steadily is a candidate, so a commitment should be sized as a floor rather than a forecast.

Five problems, in the words people use for them

These are the sentences from the review. Each card links to the page where that part of the platform is covered in depth.

What the product shows: The high availability, storage and commitment charges, each priced and tied back to the setting that drives it.

Where the rest of the method lives

Cloud SQL sits between the two platforms that came first. Like RDS it bills an instance and its standby, and like it, the decisions that cost the most were made once. Unlike Neon there is no suspend setting to lean on. The method is shared: attribute the dollars, queue and gate the fixes, put each number in front of its owner, and read every figure against the basis it carries. The guide to how Postgres cost works on a fleet explains why a commitment, a standby and a storage step are three different kinds of cost.

Questions about Cloud SQL cost

Does stopping a Cloud SQL instance stop the bill?

It stops the instance charges. Google documents that stopping an instance suspends them, while charges for storage and IP addresses continue to apply. A stopped non-production instance therefore still costs its storage, and the platform shows that remainder on the instance row instead of calling the instance free.

Can Cloud SQL storage be shrunk?

Yes, but not automatically. Google documents automatic storage increases as permanent, and a separate manual shrink operation that needs instance downtime. A read replica cannot have less storage than its primary, so the primary is shrunk first. For a tight downtime budget, Google suggests migrating to a new, smaller instance instead.

What does a Cloud SQL commitment cover?

CPU and memory in the region you commit in, measured in dollars per hour of on-demand-equivalent spend, for one or three years. Storage, backups, addresses, egress and licensing are outside it, usage above the commitment is charged on demand, and a bought commitment cannot be cancelled. That last fact is why a commitment should be sized to the steady floor.

Does high availability double everything on the bill?

Google states that an HA-configured instance costs twice as much as a standalone instance, and that the price includes CPU, memory and storage. Other lines, such as backups and network egress, are priced on their own pages, so the platform doubles the instance line and leaves the rest as the invoice shows it.

Will it turn off high availability or buy a commitment for me?

No. A change to high availability, a storage shrink or a commitment is a recommendation with its dollar delta and its basis. A person approves it, the ledger records who did, and the policy gate holds every such change for an approval, a commitment included.

See what high availability costs on each Cloud SQL instance.

A pilot starts read-only and shows the standby share, the storage slack and the coverage by region, all modeled and labelled with their basis.