Loading...
Loading...
Compare original and translation side by side
undefinedundefined
**Recommendations:**
- CPU < 20%: Downsize instance type
- CPU > 80%: Upsize or add instances
- Memory < 50%: Consider smaller instance
**Reserved Instances:**
- 1-year: ~30-40% savings
- 3-year: ~50-70% savings
- Best for predictable workloads
**Savings Plans:**
- More flexible than Reserved Instances
- Commit to $/hour usage
- Apply across instance families
**Spot Instances:**
- Up to 90% savings
- For fault-tolerant workloads
- Batch processing, CI/CD, testing
**Stop unused instances:**
```bash
**建议:**
- CPU利用率<20%:降低实例规格
- CPU利用率>80%:升级实例规格或增加实例数量
- 内存利用率<50%:考虑使用更小规格的实例
**预留实例:**
- 1年期:约节省30-40%
- 3年期:约节省50-70%
- 最适合可预测的工作负载
**Savings Plans:**
- 比预留实例更灵活
- 按每小时使用量承诺消费
- 适用于跨实例系列的场景
**竞价实例:**
- 最高可节省90%
- 适用于容错型工作负载
- 如批处理、CI/CD、测试场景
**停止未使用的实例:**
```bashNameNameundefinedundefined{
"Rules": [{
"Id": "Archive old data",
"Status": "Enabled",
"Transitions": [
{
"Days": 30,
"StorageClass": "STANDARD_IA"
},
{
"Days": 90,
"StorageClass": "GLACIER"
}
],
"Expiration": {
"Days": 365
}
}]
}aws s3api list-multipart-uploads --bucket my-bucket{
"Rules": [{
"Id": "Archive old data",
"Status": "Enabled",
"Transitions": [
{
"Days": 30,
"StorageClass": "STANDARD_IA"
},
{
"Days": 90,
"StorageClass": "GLACIER"
}
],
"Expiration": {
"Days": 365
}
}]
}aws s3api list-multipart-uploads --bucket my-bucket
**Analyze storage:**
```bash
**分析存储情况:**
```bashundefinedundefinedundefinedundefined
**Delete old snapshots:**
```bash
**删除旧快照:**
```bash2023-01-012023-01-01undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
**Delete old snapshots:**
```bash
**删除旧快照:**
```bash2023-01-012023-01-01
**Use gp3 instead of gp2:**
- gp3 is 20% cheaper
- Better performance
- Migrate existing volumes
**使用gp3替代gp2:**
- gp3便宜20%
- 性能更优
- 迁移现有卷undefinedundefinedundefinedundefinedundefinedundefined
**Delete unused log groups:**
```bash
**删除未使用的日志组:**
```bashundefinedundefinedaws ec2 describe-addresses \
--query 'Addresses[?AssociationId==null]'aws elbv2 describe-load-balancers
aws elbv2 describe-target-health --target-group-arn arnundefinedaws ec2 describe-addresses \
--query 'Addresses[?AssociationId==null]'aws elbv2 describe-load-balancers
aws elbv2 describe-target-health --target-group-arn arnundefinedundefinedundefinedundefinedundefined
**AWS Trusted Advisor:**
- Cost optimization recommendations
- Underutilized resources
- Idle resources
**Third-party tools:**
- CloudHealth
- CloudCheckr
- Spot.io
**AWS Trusted Advisor:**
- 成本优化建议
- 利用率不足的资源
- 闲置资源
**第三方工具:**
- CloudHealth
- CloudCheckr
- Spot.io