Amazon RDS · Finder

Right-size Aurora PostgreSQL instances

ResizePostgres Clusters

This FF finds Aurora PostgreSQL instances that are not properly sized

What happens, in order.

  1. Finder · read-only

    Finds the opportunity

    Scans your connected accounts with a read-only role. It can see resource metadata and usage; it can’t change anything.

  2. Report

    Reported to you

    It appears in your Recommendations view with what it would save. The change is yours to make.

Finder role

Read-only. It can see resource metadata and usage. It can’t change anything.

Fixer role

Not used here: this one is reported by the finder, so the change is yours to make.

Why it costs money

Each provisioned Aurora instance is billed per instance-hour for its DB instance class, from launch until it is stopped or deleted. Partial hours are billed by the second, with a 10-minute minimum after a billable change such as creating, starting or modifying the instance.

The instance class sets the instance’s CPU and memory, so a class larger than the workload needs is paid for in full every hour it runs.

What to look at

  • Provisioned Aurora PostgreSQL instances only. Aurora Serverless, standard RDS for PostgreSQL and burstable T classes are left out, and the instance must be at least 31 days old with no class change in the last 31 days.
  • A target with no less memory, on which peak CPU use, network throughput and storage throughput, from CloudWatch, would all stay under CloudFix’s set limit.
  • Reservations. CloudFix skips a reserved instance unless the reservation it frees would be used by other instances in the same Region. Aurora reservations flex across sizes only within one class type: a db.r6i.large reservation can cover a db.r6i.xlarge, not a db.r7g.large.
  • Settings that follow memory. Aurora PostgreSQL derives the defaults for max_connections, shared_buffers and effective_cache_size from the instance’s memory, so a class with less memory gets lower defaults unless your parameter group sets them.

What the change does

  • CloudFix reports the instance; you change its class in the console or with modify-db-instance. The instance has an outage while it changes.
  • Scaling can take 15 minutes or more, so AWS suggests applying the change in the next maintenance window rather than immediately.
  • For less downtime, AWS describes adding an Aurora Replica of the new class, waiting for it to sync, then failing over to it.

Sources: AWS: Amazon Aurora pricing; AWS: Performance and scaling for Aurora PostgreSQL; AWS: Aurora PostgreSQL parameters; AWS: Reserved DB instances for Aurora; AWS: Modifying an Aurora DB cluster; AWS: Aurora CloudWatch metrics; CloudFix support: rightsize Aurora PostgreSQL.

See whether this one applies to your account.

A free savings assessment reports which fixers can be applied to your environment. Results typically within 24 hours.