概念 · 基于 CLF-C02
Rightsizing
Read CPU, memory and network metrics, then change the size or the family.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- Rightsizing matches instance type and size to the real workload.
- Over-sized resources waste money.
- Check utilization metrics regularly.
- 1CloudWatch collects CPU, network and memory metrics.
- 2Compute Optimizer compares use with instance types and recommends.
- 3Change the size or family, then measure again.
分步说明
- 1CloudWatch collects CPU, network and memory metrics.
- 2Compute Optimizer compares use with instance types and recommends.
- 3Change the size or family, then measure again.
A rightsizing loop.
Low CPU and memory
- Smaller size
High CPU, low memory
- Compute optimized
High memory, low CPU
- Memory optimized
Low baseline, short peaks
- Burstable T type
Software runs on Arm
- Graviton
| Signal | Action |
|---|---|
| Low CPU and memory | Smaller size |
| High CPU, low memory | Compute optimized |
| High memory, low CPU | Memory optimized |
| Low baseline, short peaks | Burstable T type |
| Software runs on Arm | Graviton |
是什么
Look at several weeks of metrics, with the peaks. Low CPU and memory means a smaller size in the same family. A mismatch means another family: high CPU with low memory fits compute optimized, and high memory with low CPU fits memory optimized. Memory is not a default metric, so install the CloudWatch agent, or the memory view is missing.
Two cost moves go beyond size. AWS Graviton instances (Arm) give better price performance, if the software runs on Arm. Burstable T instances suit a low baseline with short peaks, and earn CPU credits while idle. A constant high load costs more on a burstable instance than on a fixed-performance one.
是什么
Size non-production smaller than production. Rightsize before you buy Savings Plans or Reserved Instances, so you do not commit to a size you will shrink. Change one step at a time and measure again.
要记住
- Use at least two weeks of metrics, including peaks.
- Low use: smaller size. Wrong shape: change the family.
- Memory needs the CloudWatch agent.
- Graviton: better price performance when the software supports Arm.
- Burstable T types: low baseline, short peaks. Constant load is cheaper on fixed performance.
要记住
- Rightsize before you buy commitments.
考试中
- “Instances average 10% CPU, lowest cost” points to a smaller instance size.
- “CPU bound while memory sits idle” points to a compute optimized family.
- “Cut cost by moving to Arm” points to Graviton instances.
别和这些弄混
AWS Compute OptimizerMachine learning recommendations for EC2, Auto Scaling groups, EBS, Lambda and ECS on Fargate.
- Instance families and sizingRead the family letter, generation and size, then match CPU, memory, disk and network to the workload.
- Scaling and scheduling for costMatch capacity to demand over time: scale out, schedule, hibernate, and relax availability where you can.
也出现在
本任务内容 · 4.2
- Purchasing options compared
- Reserved Instances in depth
- Savings Plans in depth
- Spot design
- Dedicated Hosts and tenancy
- Rightsizing
Compute Optimizer
- Scaling and scheduling for cost
- EC2, Lambda and Fargate cost
Organizations
- Horizontal vs vertical scaling
Load Balancing
- Regions and AZs as the HA building block
- Picking compute by workload
- Instance families and sizing
Lambda
Fargate
Outposts
- Hybrid and edge compute options
NLB and GWLB
- Placing resources
- Cost allocation tags
Cost Explorer
Budgets
Cost and Usage Reports
- Multi-account billing
Auto Scaling