Start 14-day free trial

AWS RDS and Aurora Cost Optimization: Squeezing DB Waste Without Downtime

Master AWS RDS cost optimization. Learn how to balance Aurora I/O-Optimized storage, rightsize instances, and automate scheduling to protect SaaS margins.

AWS RDS and Aurora Cost Optimization: Squeezing DB Waste Without Downtime
Figure 1: Architectural overview of AWS RDS and Aurora Cost Optimization: Squeezing DB Waste Without Downtime.

SaaS databases and transactional storage layers frequently represent 30% to 40% of the total cloud bill. Because databases are stateful and critical to system availability, engineering teams are understandably hesitant to modify them. This caution leads to massive overprovisioning, idle staging instances running 24/7, and runaway transactional I/O charges.

Achieving material savings on Amazon Relational Database Service (RDS) and Aurora requires a balance of precise storage class selection, evidence-based compute rightsizing, and automated instance scheduling. By applying exact engineering math to your database workloads, you can reclaim thousands in monthly spend while safeguarding performance.

The Anatomy of Runaway Database Costs

Unlike stateless compute instances that can be easily autoscaled or terminated, databases incur multi-dimensional costs that persist even when traffic drops. Understanding where the waste hides is the first step toward remediation.

Storage Performance Traps: gp2 to gp3 Migration

Many legacy RDS deployments still run on General Purpose SSD gp2 volumes. On gp2, Input/Output Operations Per Second (IOPS) are mathematically tied to volume size at a ratio of 3 IOPS per GB, with a minimum of 100 IOPS and a burst capability up to 3,000. To get higher performance on gp2, engineers are forced to overprovision storage capacity, paying for empty disk space just to secure necessary IOPS.

Migrating to gp3 decouples storage size from performance. A gp3 volume provides a baseline performance of 3,000 IOPS and 125 MB/s throughput for free, regardless of volume size. You can scale IOPS up to 16,000 and throughput up to 1,000 MB/s independently of storage capacity. Moving from gp2 to gp3 yields an immediate, risk-free cost reduction of 8% to 20% on storage costs while maintaining or improving database performance.

The Aurora I/O Pricing Trap: Standard vs. I/O-Optimized

Amazon Aurora offers two storage configurations: Aurora Standard and Aurora I/O-Optimized. Choosing the wrong one can double your database spend.

  • Aurora Standard: Best for workloads with low-to-medium I/O. You pay a lower baseline rate for storage ($0.10 per GB-month) and compute, but you are billed $0.20 per million I/O requests (read/write operations).
  • Aurora I/O-Optimized: Best for write-heavy or highly transactional workloads. You pay a higher baseline rate for storage ($0.225 per GB-month) and a ~30% markup on compute, but you pay exactly $0.00 for I/O requests. Under this model, your database costs become completely predictable.

The Engineering Math: When to Switch to I/O-Optimized

To determine if your Aurora cluster should run on Standard or I/O-Optimized, you must calculate the break-even point where your monthly I/O request charges exceed the storage and compute price premium of the I/O-Optimized tier.

Let us calculate the math using a real-world scenario: an active SaaS database running on a single db.r6g.2xlarge instance (on-demand price of $0.968/hour, or ~$706.64/month) with 500 GB of storage.

Cost Component Aurora Standard Aurora I/O-Optimized Delta (Premium)
Database Storage 500 GB @ $0.10/GB = $50.00 500 GB @ $0.225/GB = $112.50 +$62.50
Database Compute $706.64 $706.64 * 1.30 = $918.63 +$211.99
Sustained I/O Charges $0.20 per million requests Included ($0.00) -$0.20 / million
Total Base Cost $756.64 $1,031.13 +$274.49

In this scenario, the I/O-Optimized tier carries a monthly premium of $274.49. To break even, your database must generate more than:

$$\frac{$274.49}{$0.20 \text{ per million I/Os}} = 1,372.45 \text{ million I/Os per month}$$

This translates to roughly 45.7 million I/O requests per day, or a sustained rate of 529 IOPS 24/7. If your CloudWatch metrics show a sustained average higher than 529 IOPS, switching to Aurora I/O-Optimized will immediately lower your bill. If your average IOPS is lower, Aurora Standard remains the cheaper choice.

Compute Rightsizing: Safe CPU and Memory Tuning

Database compute sizing is traditionally driven by peak memory requirements rather than CPU utilization. Because database engines heavily cache active datasets in RAM (Buffer Pool), SREs often select massive instances (e.g., db.r6g.4xlarge) to prevent disk reads, even if CPU utilization never crosses 15%.

To safely rightsize database compute without risking performance degradation, you must analyze three core metrics over a 14-day window:

  1. ReadIOPS & WriteIOPS: Measure actual disk throughput. If ReadIOPS is consistently near zero, your active dataset is fully cached in memory.
  2. BufferCacheHitRatio: This should ideally remain above 99% for production OLTP workloads. If this drops below 95% after a rightsizing test, your database is swapping to disk, indicating that memory is too small.
  3. FreeableMemory: Compares available RAM against the instance's total capacity. If you have 32 GB of RAM and FreeableMemory never drops below 20 GB, your database is overprovisioned on memory.

Using these metrics, you can confidently downsize instances by one family size (e.g., from db.r6g.2xlarge to db.r6g.xlarge), instantly cutting compute costs by 50%.

Multi-Cloud Database Governance: Build vs. Buy

Many engineering teams attempt to build custom scripts and cron jobs to audit database utilization, track idle staging instances, and parse complex AWS Cost and Usage Reports (CUR 2.0). While a DIY approach seems attractive initially, it quickly becomes an expensive engineering distraction.

Building an in-house database optimization engine requires continuous maintenance. Cloud providers constantly update billing schemas, release new instance types, and modify API parameters. SRE teams end up spending dozens of hours writing custom scripts to aggregate RDS, Azure SQL, and GCP Cloud SQL metrics, only to produce static dashboards that fail to provide automated remediation.

CostGlass solves this instantly out of the box. By connecting your cloud accounts via read-only IAM roles, CostGlass normalizes multi-cloud database telemetry into a unified billing ledger updated every 6 hours. Instead of wasting engineering sprint cycles building internal dashboards, CostGlass provides automated, evidence-based recommendations, multi-cloud scheduling, and hands-on SRE execution.

Step-by-Step AWS RDS Cost Optimization Workflow in CostGlass

Optimizing your database fleet in CostGlass is straightforward, secure, and highly automated.

Step 1: Identify Idle and Overprovisioned Databases

Navigate to the Rightsizing dashboard (#finops:rightsizing). CostGlass automatically correlates RDS CPU utilization, memory metrics, and storage throughput to surface idle databases. The platform highlights staging and development databases that have had 0% active connections and <1% CPU utilization for over 7 days, marking them as immediate candidates for termination or stopping.

Step 2: Automate Off-Hours Off-Schedules

Development, QA, and staging databases do not need to run 24/7. Leaving a single db.m6g.xlarge instance running over weekends and nights wastes 65% of its compute budget.

Using the CostGlass Instance Scheduler (#finops:scheduler), you can apply a pre-configured off-hours schedule (e.g., Stop at 7 PM, Start at 7 AM Monday-Friday) to your non-production databases. CostGlass handles the API orchestrations across AWS, Azure, and GCP, safely stopping database instances and autoscaling groups while offering developers one-click "snooze" links via Slack to temporarily keep a database online if they are working late.

Step 3: Let CostGlass Engineers Execute the Optimizations

Database modifications carry inherent risks. Applying a storage migration or resizing a production db instance can trigger brief failovers.

If you are on the CostGlass Scale plan ($1,499/mo) or Enterprise tier, you do not have to execute these changes yourself. Your subscription includes 8 hours of dedicated senior DevOps and FinOps engineer execution every month. Our engineers will review the CostGlass recommendations, draft the necessary Terraform or CloudFormation pull requests, schedule maintenance windows, and safely execute the rightsizing and storage migrations for you. This delivers the value of a full-time FinOps SRE for a fraction of the cost, ensuring your team can focus entirely on shipping product features.

Frequently Asked Questions

Will migrating an RDS volume from gp2 to gp3 cause database downtime?

No. AWS supports dynamic volume modification for RDS. You can initiate the migration from gp2 to gp3 directly through the AWS Console, CLI, or Terraform. The migration occurs in the background with zero downtime, though you may experience a temporary, minor performance impact during the storage optimization phase. It is best practice to run this migration during off-peak hours.

How does CostGlass handle database reservations and commitments?

CostGlass tracks your entire Reserved Instance (RI) and Savings Plan portfolio under a single pane of glass (#finops:commitments). Our platform models "What-If" scenarios to ensure you do not over-purchase database commitments before rightsizing. By applying multiplicative overlap de-duplication, CostGlass ensures that rightsizing recommendations and off-hours scheduling savings are never double-counted against your active reservations.

Can CostGlass stop and start Multi-AZ RDS deployments?

Yes. The CostGlass Multi-Cloud Instance Scheduler safely manages both Single-AZ and Multi-AZ RDS deployments, as well as Aurora clusters. When a stop command is issued, AWS temporarily suspends compute billing for both the primary and standby instances while retaining your underlying storage and automated backup windows.

To start identifying overprovisioned databases and automating your off-hours schedules, view our Instance Scheduler Guide or read how we compare to native tools in our AWS Cost Explorer Comparison. To see how database savings directly impact your bottom line, explore our Unit Economics Guide.

Ready to unify your multi-cloud costs?

See your AWS, Azure, GCP, and Kubernetes spend in canonical FOCUS 1.0 in under 15 minutes.

Start 14-day free trial →

More from the blog

View all →