问题背景
某天凌晨收到 CloudWatch 告警:ECS 服务成功率从正常水平突然降至 75%,持续 3 分钟。告警信息如下:
Server-ALARM: "service_SuccessRate_P0" in US East (N. Virginia)
Reason: Threshold Crossed: 3 out of the last 5 datapoints [75.0, 75.0, 75.0]
were less than the threshold (80.0)
虽然告警很快恢复,但这种间歇性的成功率下降会影响用户体验,需要找出根本原因。
问题分析
1. 资源使用情况检查
首先检查服务的资源使用情况,排除资源瓶颈:
# 检查 CPU 使用率
aws cloudwatch get-metric-statistics \
--namespace AWS/ECS \
--metric-name CPUUtilization \
--dimensions
订阅专栏 解锁全文
254

被折叠的 条评论
为什么被折叠?



