SQL elastic pools and geo-replication

ExplainedDatabasesAzure Portal, Hands OnBy Cloud Hands On

Share capacity between many databases, and keep a live copy in another region.

An elastic pool lets many Azure SQL databases share one set of resources. Each database uses what it needs at the moment, so a group of databases that are busy at different times costs less than giving each one its own fixed size.

Active geo-replication keeps a readable copy of a database in another region, kept up to date continuously. Failover groups build on it: they move a group of databases to the other region together and give your app addresses that don't change when they do.

Cost. An elastic pool is billed every hour for the whole pool, from roughly 75 USD a month for a small one. A geo-replica costs about the same as a second database. Both are beyond the free offer.

Use it when

How it works

Pool size
Set in eDTUs or vCores for the whole pool, with a minimum and maximum for each database.
Secondary
The copy in another region. It can serve read-only queries.
Failover
Switching so the secondary becomes the primary: planned (no data loss) or forced in an emergency.
Listener addresses
A failover group's read-write and read-only addresses, which follow the primary.

Options

Elastic pool
Shared capacity for many databases.
Active geo-replication
Up to four readable copies, per database, failed over one at a time.
Failover group
Several databases fail over together, behind addresses that stay the same.

Example. Larkfield Group hosts one database per hotel in an elastic pool, because the hotels are busy at different hours. The pool sits in a failover group with a copy in UK West, in case UK South has an outage.

Don't confuse it with

Serverless database
Scales one database up and down and pauses it when idle. A pool shares capacity between many.
Point-in-time restore
Gets back old data in the same region. Geo-replication protects against losing the region.
Zone redundancy
Protects against one datacentre failing, inside one region.

Words to know

eDTU
A bundle of processor, memory and storage speed for a pool.
RPO
Recovery point objective: how much recent data you could lose in a failover.
RTO
Recovery time objective: how long it takes to be running again.

Where to look

  1. SQL servers
  2. your server
  3. Data management
  4. Failover groups

Practise it

Read it in the guide, next to the tasks and labs.

Open in Azure Portal, Hands On

Keep going