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.