本文介绍了AWS RDS t2.medium CPU积分低,尽管CPU不高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管此期间我的CPU持续稳定地

I'm wrapping my head around this issue with the CPU Balance constantly going down although my CPU during this time is <40% consistently.

我正在将t2.medium与MySQL配合使用,根据此页面,难道不是如果我<40%,我的CPU积分会增加吗?

I'm using a t2.medium with MySQL and according to this page, shouldn't it be that if I'm <40%, my CPU Credits will increase?

参考: http://docs.aws.amazon .com/AWSEC2/latest/UserGuide/t2-instances.html

推荐答案

t2.medium的基准性能为40%CPU利用率,范围为0%至200%,因为该计算机有2个核心.

The baseline performance of a t2.medium is 40% CPU utilization on a scale of 0% to 200%, because the machine has 2 cores.

从0%到100%的比例,就像Cloudwatch中显示的那样,为20%.

On a scale of 0% to 100%, like the one shown in Cloudwatch, it's 20%.

这可以通过以下计算来说明:

This can be illustrated with the following calculations:

以100%运行的单核每小时消耗60个积分(每分钟1个积分).这是CPU信用的定义.

A single core running at 100% consumes 60 credits per hour (1 credit per minute). This is the definition of a CPU credit.

两个都以100%运行的内核每小时消耗120个积分(每个内核每分钟1个积分=每分钟2个积分).

Two cores both running at 100% consume 120 credits per hour (1 credit per minute per core = 2 credits per minute).

t2.medium每小时可赚取24个学分.

A t2.medium earns 24 credits per hour.

基准绩效与获得学分的速率直接相关...而24学分意味着24分钟对一个核心的100%使用率.

The baseline performance is directly related to the rate at which credits are earned... and 24 credits means 24 minutes of 100% utilization of one core.

因此,为防止余额不断接近零的最大可持续利用率是其中之一:

Therefore, the maximum sustained utilization to prevent the balance from continually approaching zero is one of these:

  • 24÷60 = 40%(一个核心使用了那么多,另一个核心处于空闲状态)

  • 24 ÷ 60 = 40% (one core using this much, the other core idle)

24÷120 = 20%(两个内核都使用了这么多内核)

24 ÷ 120 = 20% (both cores using this much, each)

...或任何组合,例如一个内核的10%和另一个内核的30%.

...or any combination, such as 10% of one core and 30% of the other.

如果这给您的印象是发生了令人不快的事情……那不是:t2.small(单核计算机)的基准是1核的20%. t2.medium的基准价格(价格的两倍)是后者的两倍-1核的40% 或2核的20%.

If this gives you the impression that there's something disingenuous going on... there isn't: the baseline of the t2.small (a single core machine) is 20% of 1 core. The baseline of the t2.medium (at twice the price) is twice that much -- 40% of 1 core or 20% each of 2 cores.

这篇关于AWS RDS t2.medium CPU积分低,尽管CPU不高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 08:22