FinOps · AlloyDB
AlloyDB cost optimization: the read pool sized for launch, memory reserved for scans nobody runs, and retention left alone.
AlloyDB bills nodes, and nodes are where it leaks: a read pool bought for launch day, memory held for a column store that nothing queries, and a recovery window nobody revisited. This is the FinOps view of the three.
A bill that follows nodes and what is kept
The read pool was sized for launch. Columnar memory is reserved for tables nobody scans that way. Storage grows with a retention nobody reviewed. These are the three sentences that come out of an AlloyDB cost review, and they share a cause: AlloyDB separates compute from storage, so each can drift on its own. Compute is a count of nodes, chosen once for a peak, and it does not fall when the workload does. Storage is a shared layer that scales by itself, and the backups and logs around the data keep clocks of their own.
That separation is also what makes AlloyDB readable. Adding a node adds exactly one thing to the bill, a node, and storage does not move when you do it. This page is the AlloyDB chapter of Postgres FinOps. It sets out how AlloyDB meters a month and takes each leak in turn. How the platform watches the columnar engine and the read pool is on the AlloyDB solutions page, and the shared method is in the cost optimization overview.
How AlloyDB meters a month
A cluster holds one shared storage layer and some instances on top of it. Each instance is made of nodes, and nodes are priced per vCPU and per GiB of memory. A primary can be highly available, which gives it an active node and a standby node in another zone, or basic, which has one node and no standby. A read pool can hold up to twenty nodes across the cluster, and each one is charged like a primary.
Storage is billed on use, backups on how long they are kept, and one discount sits over the compute. Unlike most commitment schemes it is not scoped to a region: the commitment applies across every region and project on the billing account. The table is not a price list. It is what each line counts and how it behaves.
-
vCPU and memory per node
- Behaviour
- metered
- What it means for the bill
- Instances are priced per vCPU and per GiB of memory. A zonal primary uses one node, a highly available primary two (an active node and an in-region standby), and a read pool up to twenty nodes across the cluster.
-
Read pool nodes
- Behaviour
- multiplies
- What it means for the bill
- Read pool instances are charged at the same rate as primary instances, so each node added is another instance’s worth of vCPU and memory. Autoscaling can change the node count by a CPU target or by a schedule.
-
Columnar engine memory
- Behaviour
- flat
- What it means for the bill
- Not a charge of its own. While the engine is enabled a share of the instance’s memory, 30 percent by default, is allocated to the column store. It is memory you already pay for, held for one purpose.
-
Database storage
- Behaviour
- metered
- What it means for the bill
- A regional layer shared by every instance in the cluster that scales automatically and bills on what is used. Adding read nodes does not change it.
-
Backups and logs
- Behaviour
- metered
- What it means for the bill
- A backup is billed from the time it completes until it passes its retention period. Transaction logs kept for point-in-time recovery are free for the first seven days and billed after that.
-
Committed use discount
- Behaviour
- flat
- What it means for the bill
- A spend-based commitment, for one or three years, in dollars per hour of on-demand-equivalent spend. It applies to vCPU and memory across every region and project on the billing account, not to storage, backups or data transfer. Overage is charged on demand.
Load on each node of the read pool
AlloyDB load-balances requests across the nodes of a read pool, so a pool that is too large looks like a set of evenly idle nodes rather than one hot one. A node does not become cheaper because it is quiet. It is charged at the primary’s rate for every hour it exists.
Two other facts belong in the same review. An application that never left the primary’s address makes a large pool pointless, because the reads never reach it. And a highly available primary carries a second node, which a development environment rarely needs. Nothing here changes by itself.
Columnar memory, reserved against what scans use
The columnar engine is the feature that makes AlloyDB’s analytics fast, and it has a quiet cost. While it is enabled, a portion of the instance’s memory is allocated to the column store, 30 percent by default, and that memory is not available for anything else. It has no line on the invoice. It shows up as an instance bigger than the workload needs, because part of its memory is spoken for.
Whether the reservation pays for itself depends on the scans. A query can use the column store only when every column it touches is loaded, so a reservation can sit mostly empty while the instance is sized around it.
Columnar memory reserved against use
illustrativeOne instance with the column store enabled. Memory is reserved for the column store and holds almost nothing.
Reserved and empty
about a quarter of instance memory
Column store in use
a few percent of instance memory
Storage, backups and the window nobody reviewed
Database storage is the layer that behaves best. It scales by itself and bills on what is used, shared by every instance. The surprise is the rest of the storage line: backups, which are billed from the time one completes until it passes its retention period, and the transaction logs that make point-in-time recovery possible, free for the first seven days and billed after. A longer window or a forgotten on-demand backup does not look like growth in the application. It looks like growth in the invoice.
The layers have four owners. Data is the application’s. Retained backups follow a schedule somebody set. On-demand backups were taken for a reason that may have ended. Logs past the free window follow the recovery horizon.
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 read pool, columnar memory and storage charges, each priced and tied back to the workload that drives it.
Columnar memory is reserved for tables nobody scans that way.
Storage grows with a retention nobody reviewed.
The dev cluster has a standby.
The commitment does not cover what we run.
Where the rest of the method lives
AlloyDB shares a cloud, a commitment scheme and a billing console with Cloud SQL, and very little else in how it spends. Cloud SQL multiplies an instance; AlloyDB multiplies nodes and keeps the storage separate. The method is the same anyway: 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. For how a fleet’s cost divides into the kinds that move with load and the kinds that do not, read how Postgres cost works on a fleet.
Questions about AlloyDB cost
Does adding read-pool nodes raise the AlloyDB storage bill?
No. Google documents that the regional storage layer is shared by every instance in the cluster, so adding read pool instances or nodes does not change storage cost. The nodes themselves are charged at the same rate as primary instances, which is why the node count is the lever and the storage line is not.
What does the columnar engine cost?
It is not a separate line. While the engine is enabled, AlloyDB allocates a portion of the instance’s memory to the column store, 30 percent by default, adjustable, and that memory is part of the instance you already pay for. The cost question is whether the reserved memory is doing work, and the platform prices the part of the reservation that is doing nothing.
What is the catch with read pool autoscaling?
Google documents two. The autoscaler does not terminate long-lived connections when it adds nodes, so traffic on those connections never reaches the new ones, and new nodes can take a few minutes to warm their caches. When several policies are active, the one recommending the most nodes wins. The platform shows whether the added nodes took any traffic.
What makes AlloyDB backup storage grow?
A backup is billed from the time it completes until it leaves its retention period, and transaction logs kept for point-in-time recovery are free for the first seven days and billed after that. Longer recovery windows, more on-demand backups and backups kept past their purpose all add to the line. The platform shows them apart from the data itself.
Will it resize a read pool or change the columnar allocation for me?
No. A node count, an autoscaling policy or a memory allocation is a recommendation with its dollar delta and its basis. A person approves it and the ledger records who did. Each goes through the approval gate.
See which AlloyDB nodes and reservations are carrying nothing.
A pilot starts read-only and shows the node load, the columnar reservation against its use and the retention layers, all modeled and labelled with their basis.