သဘောတရား · 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.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Cloud Practitioner မှ သင်သိပြီးသားများ
- 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
| Lever | Saves | Watch out |
|---|---|---|
| Stop when idle | Instance hours | Storage still bills |
| Multi-AZ in prod only | Standby instance | Non-prod has no failover |
| gp3 storage | Storage and IOPS cost | High IOPS may need io |
| Reserved Instances | Instance hours | Needs steady use |
ဘာလဲ
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.
ဒါတွေနဲ့ မရောပါနဲ့
Amazon Relational Database Service (Amazon RDS)Managed MySQL, PostgreSQL, MariaDB, Oracle, SQL Server and Db2: choose the engine, the instance class and the storage type.
Amazon AuroraA cloud-built MySQL- and PostgreSQL-compatible database with shared storage, fast failover and up to 15 replicas.
Amazon Aurora Serverless v2Aurora that adjusts its capacity by itself, in small steps, and can pause when idle.
ဒီ task ထဲမှာ · 4.3
- DynamoDB cost design
- RDS and Aurora cost design
- Reserved capacity for databases
- Backup and retention policies
- Cost-effective database types
Organizations
Backup
- Caching strategies
- Choosing a database by access pattern
RDS
- Read replicas
RDS Proxy
Aurora
Aurora Serverless
DynamoDB
ElastiCache
DMS
- SCT
Redshift
- Cost allocation tags
Cost Explorer
Budgets
Cost and Usage Reports
- Multi-account billing