Optimize
Postgres right-sizing and savings: a queue with owners, and a dollar on every change.
Finding waste is the easy half. The hard half is an owner for each finding, a price on each fix before it runs, an approval gate on the change, and a check afterwards that the saving arrived.
A recommendation nobody owns is a backlog
Most teams already receive advice about their databases. It comes as an email from a cloud advisor, a line in a monitoring report, a comment in a review. Each is accurate and each ends the same way: it is addressed to nobody in particular, it has no price on the fix, and when somebody does act, nothing checks that the bill moved.
Optimize is the second step of the FinOps loop, and it starts from the numbers informing produced. It turns each leak into one item with one owner, shows what its fix would cost and save, routes the fix through the approvals you already trust, and closes the item only when the evidence says it worked.
The opportunities queue
An opportunity is a finding with an owner and a projected (modeled) amount. The findings are the ones a Postgres fleet actually produces: an instance or reader the load never fills, a replica nobody reads from, data nobody has touched, storage billed in a way that no longer suits the workload, and spend with no owner. A surcharge for a major version that has outlived community support is a finding too, and appears as a row.
Approval is a gate on the change that fixes an item. An item closes only when the evidence says the change worked, through a savings case, which is the next section.
Inside an item the order never changes. The fix for the cause comes first, and it costs nothing. An application change comes second. Spend comes last, and it is never offered first.
Opportunities queue
illustrative basisprojectedSorted by projected amount, each with an owner.
-
Surcharge on an aging major version
- Owner
- Platform team
- Projected a month
- $2,250 projected
-
Reader sitting well below its capacity
- Owner
- Search
- Projected a month
- $1,080 projected
-
Replica with no read traffic
- Owner
- Payments platform
- Projected a month
- $840 projected
-
Order history nobody has read
- Owner
- Payments platform
- Projected a month
- $190 projected
A savings case, projected and then realised
A saving is recorded as a case: what the cost was before the change, the change itself, and what it is after. The difference is projected first, labelled modeled. It is measured over a representative period before and after, at the same prices on both sides, so a later price edit cannot quietly rewrite a case that is already in the books.
The realised saving is a different number and it arrives later. It is called savings only once the after period has been read, from a bill or from telemetry, and it sits beside the projection with the gap between them showing. Nobody has to remember to go and look.
A dollar delta on every action, and a gate on every change
Every change the platform can run carries its projected dollar delta before it runs, up or down, with the basis beside it. That figure lets the person approving see what they are approving, and a change that adds spend is shown with a plus sign rather than hidden in a summary. Every action is policy-gated whatever its size. Edits to the rate card are reviewed too, because a wrong price quietly rewrites every figure that rests on it.
The path is the one every other change takes. The policy gate refuses anything you have not allowed in writing. The action plane dry-runs before and probes after. And the trust ledger records the delta that was claimed beside the approvals, so a change has a signed history.
Fix the cause, change the application, spend money last
When a cluster is slow, the reflex is a bigger one, because that always works and nobody argues with it. It is also the most expensive answer and the one that never goes away. Recommendations here are ordered by what they cost you. The cheapest is a fix to the cause: an index, a rewritten query, a pool or maintenance setting. Next is a change in the application: batch the writes, cache the read, retire a job nobody needs. Only then does a bigger instance, more provisioned I/O or another replica appear, as recurring spend that has to justify itself against the first two.
The ordering is not a rule about being thrifty. It is a rule about which answer can be undone cheaply. A connection fix before a plan upgrade, an index before a larger writer: if the cheap step does not solve it, the expensive one is still there.
The cheapest cost is the one that never ships
Everything above is cleanup after the fact. Pricing a change before production moves the question earlier. A change that would add an index, widen a column on a hot table, raise provisioned I/O or add a replica can be priced before it merges, with the delta and the budget line it lands on, so the cost is on the review rather than found afterwards.
A schema-change planner sits beside it. It prices what a migration does to storage and to every later write, which is the cost that grows quietly after the deploy is forgotten.
Cold data has a price, and so does keeping it past its policy
Most of what a database holds is not being used, and all of it is billed as if it were. Once you can see how long data has sat unread, moving it somewhere cheaper, or deleting it, is a decision with a dollar figure and not a vague tidy-up. Data kept longer than its retention policy says is a separate item, whatever its age.
When data has sat unread long enough to be worth moving, it becomes an item in the queue like any other, with an owner and a projected amount. The mechanics that cause the waste in the first place are in autovacuum and bloat, and the cost model guide covers how each platform meters storage.
After the queue empties
A queue drains and refills, so the next step is the practice around it: showback to the owners, budgets and unit costs. Every savings case rests on the prices it was made under, which is why the trust page matters to anything on this one. To see what each platform tends to put in the queue first, start from the cost optimization overview.
Put an owner and a price on every finding.
A pilot starts where nothing is allowed to mutate. You see the queue and the projected (modeled) amounts on your own clusters, and nothing runs until you have said it may.