Why it matters
A second region roughly doubles an account’s throughput and storage cost, and it is easy to leave in place on development and test accounts that were copied from production.How nOps finds it
nOps reads the last 7 days of pay-as-you-go Cosmos DB billing. An account is flagged when its throughput was billed in at least two regions on at least 6 of those days. The kept region is the one that costs the most (on a near tie, the region billing shows as the write region). The saving is the throughput and storage cost of the other regions. Throughput covered by reserved capacity is not counted.Before you start
Confirm with the account owner whether the extra regions are needed for read latency or disaster recovery.How to implement
- Confirm no application or recovery plan relies on the extra regions.
- If the account uses multi-region writes, turn them off first.
- In the Azure portal, open the Cosmos DB account and go to Replicate data globally.
- Remove the extra regions, keeping the write region, and save.
Risks and considerations
- Removing a region removes its local reads and its role in failover.
- You can add a region back later. Cosmos DB copies the data to it again, which takes time and costs data transfer.
FAQs
Which region does nOps keep?
Which region does nOps keep?
The region that costs the most, which is normally the write region. On a near tie, the region billing shows sending replication traffic.