我有一个AWS EC2实例,我一直在用它来处理数据库备份(用PHP脚本导入它,然后更改参数并再次导入,等等(。
昨天,我的导入脚本花了大约10分钟。今天,大约需要10个小时。
问题出在哪里?我该怎么解决?我检查了终端上的top命令,CPU使用率很低,我检查了EC2实例的监控,我有完整的CPU信用余额。
问题不是CPU信用,而是EBS I/O突发信用。
我在这个链接找到了答案:
https://aws.amazon.com/it/premiumsupport/knowledge-center/ec2-instance-slow-cpu-not-high/
Resolution Check I/O burst credit balance Open the Amazon EC2 console. In the navigation pane, choose Instances, and then select the instance. On the Description tab, choose the Root device link, and then choose the EBS ID link. Choose the Monitoring tab for the EBS volume, and then find the Burst Balance metric
如果您的突发余额为0%,则需要等待它恢复,或者为EBS设备提供不同的参数,以支持更高的持续I/O负载。