Illia Khomenko
Writing

RDS SQL Server Reserved Instances vs Database Savings Plans: what each one covers

A reserved DB instance for SQL Server applies only to the exact size, edition and deployment you bought. A Database Savings Plan survives a resize or an engine change, but for SQL Server it discounts the instance price only, not the licences.

On RDS for PostgreSQL or MySQL, a reserved DB instance is forgiving. Buy one for a db.r6i.large, scale to xlarge, and the reservation covers half of the bigger instance. AWS calls this size flexibility.

SQL Server doesn't have it. The RDS documentation says size flexibility does not apply to RDS for SQL Server or to Oracle License Included.

What the reservation is tied to

For SQL Server, all of these have to match the running instance:

  • Region
  • instance type and size, for example db.r7i.xlarge
  • edition: Standard, Enterprise or Web
  • licence type
  • Single-AZ or Multi-AZ

When they match you get the discounted rate. When one of them stops matching, the running instance is billed on demand and the reservation carries on to the end of its term with nothing to apply to.

The changes that break it

These are ordinary decisions in the life of a database, and each one strands the reservation.

Resizing is the obvious one. A database that outgrows xlarge in the second year of a three-year term moves to 2xlarge at the on-demand rate, and you pay for the reserved xlarge as well.

Changing edition does the same. If you find the database doesn't need Enterprise and move it to Standard, the Enterprise reservation keeps billing. That makes the reservation an argument for staying on the expensive edition.

A newer instance family counts as a different instance type. Moving from r6i to r7i to get unbundled licence billing and Optimize CPU means leaving the reservation behind.

So does leaving SQL Server. A migration to PostgreSQL that would cut the database cost by half gets postponed until the term runs out, because the reservation is already paid for.

What I'd do in its place

Reserve last. The sequence I use for a SQL Server database is:

  1. Settle the edition. I covered the checks in Standard vs Enterprise on RDS.
  2. Settle the vCPU count with Optimize CPU, or a smaller class.
  3. Decide whether it stays on SQL Server for the length of the term. If a PostgreSQL migration is likely within it, don't reserve.
  4. Then commit, for one year unless the database has been the same shape for a long time.

A database that changed size twice in the last eighteen months is a poor candidate for a three-year term, whatever the discount.

Database Savings Plans

AWS now sells Database Savings Plans alongside reserved instances. It describes them as applying to the latest provisioned instance generations regardless of engine, instance family, size, Availability Zone or Region, with savings of up to 35%. You commit to an amount per hour and not to an instance.

That removes most of the problem above: a resize or an engine change keeps the discount. The catch for SQL Server is the licence. AWS states that for RDS for SQL Server the plan applies only to the instance price, and the SQL Server and Windows licence charges stay at on-demand rates. On a 4-vCPU Multi-AZ Standard database that's $619 of the $1,349 monthly bill the plan doesn't touch, so size the commitment on instance spend alone.

Two more things to check. Whether your instance classes count as a covered generation. And the term: Database Savings Plans are one year with no upfront payment, and they can't be combined with reserved instances on the same workload.

If you already hold one

Find out what you have. In the RDS console the Reserved instances page lists each reservation with its class, edition, deployment and end date. Compare that list with the running instances.

A reservation with nothing matching it can sometimes be put to use: if a non-production database of the right engine and edition can run on that exact size, the reservation will apply to it. Otherwise note the end date and plan the changes you've been postponing for the week after.

If you have reservations and aren't sure all of them still match something, that's where an audit starts.

Short answers

Are RDS Reserved Instances size flexible for SQL Server?

No. AWS documents that size flexibility does not apply to RDS for SQL Server or to RDS for Oracle License Included. The reservation matches one instance size. For MySQL, MariaDB and PostgreSQL a reservation applies across sizes in the same instance class type.

What has to match for the reservation to apply?

Region, DB engine, instance type, instance size, edition, licence type and the Single-AZ or Multi-AZ deployment. The engine version does not need to match.

Is there a more flexible commitment for databases?

Database Savings Plans. AWS describes them as applying to the latest instance generations regardless of engine, instance family, size or Region, at up to 35% off. For RDS for SQL Server they discount the instance price only: the SQL Server and Windows licence charges stay at on-demand rates.

Do Database Savings Plans cover the SQL Server licence?

No. AWS states that for RDS for SQL Server, Savings Plans apply only to instance price, and that Windows Server and SQL Server licensing charges are billed separately at on-demand rates. Size the commitment on instance spend, not on the whole database line.

Reserved Instance or Database Savings Plan for RDS SQL Server?

A Savings Plan if the database may change size, edition or engine during the term: it is a 1-year commitment per hour, not to an instance. A reservation only for a database whose size, edition and deployment you are sure of. The two can't be combined on the same workload.