AWS / FinOps

Graviton migration for RDS and EC2: real savings and pitfalls

Moving an EC2 instance from m6i to m7g lowers its hourly rate by 15% in US East (N. Virginia). Moving an RDS for PostgreSQL database from db.r6i to db.r7g lowers it by 4.4%. The gap depends on the service, and the migration effort is very different.

What AWS claims

AWS Graviton is AWS's own Arm-based processor. On its Graviton page, AWS says Graviton-based instances cost up to 20% less than comparable x86-based EC2 instances, and use up to 60% less energy for the same performance. The page does not say which instances or workloads those figures come from.

For databases, the claims compare Graviton generations with each other, not with x86. When RDS added db.r7g and db.m7g, AWS announced up to 27% better price/performance than Graviton2, based on on-demand pricing. The Graviton4 benchmark post claims up to 29% better price-performance than Graviton3.

"Up to" is a ceiling measured on AWS's chosen benchmark. Your result depends on your engine, version, queries and code. The list price is the only part you can know before testing.

The price difference, instance by instance

These are on-demand Linux rates for 4 vCPU and 16 GiB instances in US East (N. Virginia), from the EC2 on-demand pricing page on 28 October 2026. Monthly figures use 730 hours. Rates vary by Region and change over time.

EC2 typeProcessorPer hourPer monthvs m6i
m6i.xlargeIntel (x86)$0.1920$140.16baseline
m7i.xlargeIntel (x86)$0.2016$147.17+5%
m6g.xlargeGraviton2$0.1540$112.42-20%
m7g.xlargeGraviton3$0.1632$119.14-15%
m8g.xlargeGraviton4$0.1795$131.05-6.5%

For RDS, the table uses Single-AZ RDS for PostgreSQL rates for 4 vCPU and 32 GiB classes in the same Region, from the RDS for PostgreSQL pricing page. Multi-AZ roughly doubles each figure.

RDS classProcessorPer hourPer monthvs db.r6i
db.r6i.xlargeIntel (x86)$0.500$365.00baseline
db.r7i.xlargeIntel (x86)$0.500$365.000%
db.r6g.xlargeGraviton2$0.450$328.50-10%
db.r7g.xlargeGraviton3$0.478$348.94-4.4%

Two things stand out. On EC2, the older Graviton2 generation is cheapest, and the newest Graviton4 is closest to x86 on price. On RDS, the list-price gap is small: db.r7g saves $16 a month over db.r6i. For RDS, the argument for Graviton rests on performance per dollar, which only a benchmark of your workload can confirm.

RDS: a class change, with downtime

RDS manages the engine binaries, so there is no AMI or package to rebuild. Moving to Graviton means modifying the DB instance class. The RDS modification settings state that downtime occurs during this change, either immediately or in the next maintenance window.

aws rds modify-db-instance \
  --db-instance-identifier staging-db \
  --db-instance-class db.r7g.xlarge \
  --apply-immediately

Multi-AZ shortens the interruption. AWS describes the sequence: RDS modifies the standby first, performs a planned failover once it has caught up, then modifies the old primary. Connections still drop at the failover, and DNS can take up to 35 seconds to update.

Engine support is the first thing to check. According to the RDS instance class support table, db.r7g runs RDS for MySQL 8.0 and 8.4, and RDS for PostgreSQL 13.4 and higher 13 versions, 14.5 and higher 14 versions, and all 15, 16 and 17 versions. Graviton classes are not available for RDS for Oracle, SQL Server or Db2. Confirm the exact combination for your Region before planning:

aws rds describe-orderable-db-instance-options \
  --engine postgres \
  --engine-version 16.4 \
  --db-instance-class db.r7g.xlarge \
  --query "OrderableDBInstanceOptions[].[DBInstanceClass,EngineVersion,MultiAZCapable]" \
  --output table

An empty result means the version is not offered on that class, so plan a minor or major version upgrade first. Rollback works the same way as the migration: modify the class back to x86, with the same downtime.

EC2: a new instance, and a software inventory

You cannot switch an existing EC2 instance from x86 to Arm. The EC2 documentation notes that AMIs are specific to the processor architecture, so you launch a new instance from an arm64 AMI and move the application.

AWS's Graviton transition guide suggests listing software in three groups: what you download, what you build and what you license. In practice, that means checking:

  • Container images. Every base and third-party image needs an arm64 variant. Amazon ECR supports multi-architecture images, so one tag can serve both during the transition.
  • Native dependencies. Python wheels, Node.js native modules, JNI libraries and vendored binaries must exist for arm64 or be rebuilt.
  • Agents. Monitoring, security and log shipping agents are often licensed software. Check that the vendor ships an arm64 build.
  • Build and CI. Pipelines that produce x86-only artifacts will break the first arm64 deployment.

A multi-arch build publishes both architectures under one tag:

docker buildx build \
  --platform linux/amd64,linux/arm64 \
  -t <account>.dkr.ecr.us-east-1.amazonaws.com/api:1.4.0 \
  --push .

Keep the x86 AMI and launch template until the arm64 version has run cleanly for a while. Rollback is then a redeploy, not a rebuild.

Monthly cost of a dev EC2 instance in US East (N. Virginia): m6i.xlarge running 24/7 costs $140, m7g.xlarge running 24/7 costs $119, and m7g.xlarge running 60 hours a week costs $43.
Graviton lowers the hourly rate. A schedule lowers the number of hours. On-demand Linux rates, US East (N. Virginia), October 2026.

Commitments can cancel the saving

Check your commitments before changing families. A discount you already pay for can stop applying the moment the instance moves.

  • RDS Reserved Instances are size-flexible only within one class type. The RDS documentation gives this exact case: a db.r6i.large reservation does not apply to a db.r7g.large. The migrated database bills on-demand while the reservation keeps billing.
  • EC2 Instance Savings Plans commit to one instance family in one Region, such as m6i in Virginia. Moving to m7g leaves the plan unused.
  • Compute Savings Plans apply regardless of instance family, so they follow a move from m6i to m7g. See the Savings Plans types.
  • Database Savings Plans apply to eligible RDS usage regardless of instance family, but cannot be combined with RDS Reserved Instances for the same workload, according to the Database Savings Plans pricing page. Check eligibility for your current and target classes.

The usual answer is timing: migrate the instances covered by family-bound commitments as those commitments expire. Savings Plans vs Reserved Instances covers how each commitment interacts with scheduled resources.

Benchmark before you count the saving

A lower hourly rate is only a saving if the new instance does the same work at the same size. Run the same load against both architectures: the same dataset, the same queries or requests, and the same duration. Compare throughput, p95 or p99 latency and CPU use, not a single average.

If Graviton handles the load comfortably, the better result may be a smaller size, not the same size on a cheaper family. The EC2 rightsizing guide covers which metrics to read before choosing.

Start with dev and staging

Non-production environments are where compatibility problems are cheap to find. A missing arm64 image or an agent without an Arm build shows up there first, without customers watching. Staging also gives you a measured downtime for the RDS class change before you schedule it in production.

A sensible order is: one dev EC2 instance or service, then the staging environment, then production services one at a time. Do the same for RDS, starting with databases whose engine version already supports the target class.

Graviton and scheduling add up

Graviton lowers what an hour costs. Scheduling lowers how many hours you pay for. The two apply to different parts of the bill, so they combine.

Take a dev EC2 instance in US East (N. Virginia). An m6i.xlarge running 24/7 costs $140.16 a month. On m7g.xlarge, it costs $119.14. Run that m7g only Monday to Friday, 8am to 8pm, which is 60 of 168 hours each week, and compute drops to about $42.55 a month: 70% less than the starting point.

For a staging RDS for PostgreSQL database, db.r6i.xlarge at $365.00 a month becomes $348.94 on db.r7g.xlarge, and about $124.62 on the same 60-hour schedule. Storage and backups keep billing while a database is stopped, so the full bill falls less than the instance line. The hidden costs of stopping RDS lists what remains.

SnoozeDB handles the scheduling part. It stops and starts RDS and EC2 instances on a business-hours preset or a custom schedule, and stops RDS databases again when AWS restarts them after seven days. It does not change instance classes or migrate workloads. See the schedules documentation for how schedules are set up.