amazon-ec2 – 计算EC2 CPU信用额度和贷方余额

我有一个AWS EC2 t2 micro. CPU Credit Usage显示我每小时使用1.1点数(使用总和统计数据).但Credit Balance显示每小时减少0.5个信贷.

我的理解是,微型实例每小时可获得3个学分.因此,如果信用使用量超过每小时3次,则余额应该减少.

但是我每小时仅使用1.1点积分.为什么余额会减少?

最佳答案 AWS有这样的答案:

For example, if a t2.small instance had a CPU utilization of 5% for the hour, it would have used 3 CPU credits (5% of 60 minutes), but it would have earned 12 CPU credits during the hour, so the difference of 9 CPU credits would be added to the CPU credit balance. Any CPU credits in the balance that reached their 24 hour expiration date during that time (which could be as many as 12 credits if the instance was completely idle 24 hours ago) would also be removed from the balance. If the amount of credits expired is greater than those earned, the credit balance will go down; conversely, if the amount of credits expired is fewer than those earned, the credit balance will go up.

见链接:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html

点赞