ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 CLF-C02

RDS and Aurora cost design

Right-size instances, buy commitments, use Multi-AZ only where needed, and pick the Aurora mode that fits the I/O.

本课尚未翻译,暂以英文显示。

你在云从业者中已学过

  • RDS runs managed relational engines.
  • Multi-AZ adds a standby instance for failover.
  • You pay for the instance, storage and backups.
阅读云从业者课程
  • Stop when idle

    Saves
    Instance hours
    Watch out
    Storage still bills
  • Multi-AZ in prod only

    Saves
    Standby instance
    Watch out
    Non-prod has no failover
  • gp3 storage

    Saves
    Storage and IOPS cost
    Watch out
    High IOPS may need io
  • Reserved Instances

    Saves
    Instance hours
    Watch out
    Needs steady use
Four levers on a database bill.
I/O over 25% of spend?
Load varies a lot?
I/O-Optimized
Serverless v2
Provisioned plus RIs
yesnoyesno
Which Aurora mode fits.

是什么

Instance hours are the biggest part. Size from CloudWatch metrics, and use Reserved Instances for steady databases. A dev or test instance can be stopped for up to 7 days at a time. You stop paying instance hours but still pay for storage. Multi-AZ doubles the instance cost, so keep it for production and run non-production in one AZ.

是什么

For storage, gp3 costs less than gp2, and Provisioned IOPS (io1 or io2) is only for steady high IOPS. For reads, a read replica costs a full instance. A cache such as Amazon ElastiCache in front of hot reads is often cheaper and faster. Use replicas when you need more query capacity or reporting that a cache cannot serve.

是什么

Aurora Serverless v2 scales in capacity units (ACUs) with the load, and can scale down to zero and pause when idle. It fits spiky, unknown or dev workloads. A steady heavy database is cheaper as provisioned instances with Reserved Instances. Aurora I/O-Optimized has no per-I/O charge, but higher instance and storage prices. It pays off when I/O is more than about 25% of the Aurora bill. Otherwise use Aurora Standard.

要记住

  • Size from metrics. Use Reserved Instances for steady databases.
  • Stop dev databases when idle. RDS restarts a stopped instance after 7 days.
  • Multi-AZ doubles instance cost. Use it in production.
  • gp3 over io1 unless you need steady high IOPS.
  • Read-heavy: try a cache before adding a read replica.

要记住

  • Aurora I/O-Optimized when I/O is over about 25% of spend. Serverless v2 for variable load.

考试中

  • “Dev database used only in work hours” points to stopping it on a schedule, or Aurora Serverless v2.
  • “Aurora bill is dominated by I/O charges” points to Aurora I/O-Optimized.
  • “Spiky, unpredictable database load, least cost” points to Aurora Serverless v2.
  • “Many repeated identical reads on the database” points to ElastiCache before more replicas.