EC2 中的 CPU 信用余额是什么?
What is CPU Credit Balance in EC2?
我在 EC2 监控中遇到了 CPU Credit Balance 。什么是 CPU 信用余额?
当您的实例使用的 CPU 资源少于其基本性能水平所允许的(例如闲置时),未使用的 CPU 积分(或获得的积分与获得的积分之间的差额) spent) 最多存储在信用余额中 24 小时,为爆发积累 CPU 信用。
扩展上一个答案。
t2
class 个实例使用可突发 CPU 模型。您无需一直访问完整的 CPU 资源,而是基于 CPU 信用模型访问完整的 CPU 资源。
当您的实例处于空闲状态时,该实例正在累积积分直至达到上限。费率和上限因实例大小而异。
当您使用 CPU 资源时,您会花费这些信用。一旦您 运行 退出,您的 CPU 使用率上限会非常低,直到您积累更多积分。
AWS EC2
有 2 种不同类型的实例:固定性能实例(例如 M3、C3 等)和 突发性能实例(例如 T2)。 Fixed Performance Instances
提供一致的 CPU 性能,而 Burstable Performance Instances
在正常工作负载下提供 baseline CPU performance
。但是当工作量增加时Burstable Performance Instances
有能力爆发,即增加CPU性能。
CPU Credit 调节实例的爆发量 CPU。您可以花费此 CPU 积分来提高 Burst 期间的 CPU 性能。假设您以 CPU 的 100% 性能运行实例 5 分钟,您将花费 5(i.e. 5*1.0)
CPU 积分。同样,如果您 运行 一个实例以 50% CPU 的性能运行 5 分钟,您将花费 2.5(i.e. 5*0.5)
CPU 积分。
CPU 信用余额 就是您帐户中随时可用的 CPU 信用额度。
当您创建一个实例时,您将获得一个初始CPU信用。每小时您将自动获得一定数量的 CPU 积分(此数量取决于实例类型)。如果您没有突破 CPU 表现,CPU 积分将添加到您帐户的 CPU 积分余额中。如果您的 CPU Credit 不足(即 CPU Credit Balance 变为 0),您的实例将以基准性能运行。
阅读更多关于CPU Credits and Baseline Performance for Burstable Performance Instances
Amazon EC2 allows you to choose between Fixed Performance Instances
(e.g. M3, C3, and R3) and Burstable Performance Instances (e.g. T2).
Burstable Performance Instances provide a baseline level of CPU
performance with the ability to burst above the baseline. T2 instances
are for workloads that don’t use the full CPU often or consistently,
but occasionally need to burst.
T2 instances’ baseline performance and ability to burst are governed
by CPU Credits. Each T2 instance receives CPU Credits continuously,
the rate of which depends on the instance size. T2 instances accrue
CPU Credits when they are idle, and use CPU credits when they are
active. A CPU Credit provides the performance of a full CPU core for
one minute.
我在 EC2 监控中遇到了 CPU Credit Balance 。什么是 CPU 信用余额?
当您的实例使用的 CPU 资源少于其基本性能水平所允许的(例如闲置时),未使用的 CPU 积分(或获得的积分与获得的积分之间的差额) spent) 最多存储在信用余额中 24 小时,为爆发积累 CPU 信用。
扩展上一个答案。
t2
class 个实例使用可突发 CPU 模型。您无需一直访问完整的 CPU 资源,而是基于 CPU 信用模型访问完整的 CPU 资源。
当您的实例处于空闲状态时,该实例正在累积积分直至达到上限。费率和上限因实例大小而异。
当您使用 CPU 资源时,您会花费这些信用。一旦您 运行 退出,您的 CPU 使用率上限会非常低,直到您积累更多积分。
AWS EC2
有 2 种不同类型的实例:固定性能实例(例如 M3、C3 等)和 突发性能实例(例如 T2)。 Fixed Performance Instances
提供一致的 CPU 性能,而 Burstable Performance Instances
在正常工作负载下提供 baseline CPU performance
。但是当工作量增加时Burstable Performance Instances
有能力爆发,即增加CPU性能。
CPU Credit 调节实例的爆发量 CPU。您可以花费此 CPU 积分来提高 Burst 期间的 CPU 性能。假设您以 CPU 的 100% 性能运行实例 5 分钟,您将花费 5(i.e. 5*1.0)
CPU 积分。同样,如果您 运行 一个实例以 50% CPU 的性能运行 5 分钟,您将花费 2.5(i.e. 5*0.5)
CPU 积分。
CPU 信用余额 就是您帐户中随时可用的 CPU 信用额度。
当您创建一个实例时,您将获得一个初始CPU信用。每小时您将自动获得一定数量的 CPU 积分(此数量取决于实例类型)。如果您没有突破 CPU 表现,CPU 积分将添加到您帐户的 CPU 积分余额中。如果您的 CPU Credit 不足(即 CPU Credit Balance 变为 0),您的实例将以基准性能运行。
阅读更多关于CPU Credits and Baseline Performance for Burstable Performance Instances
Amazon EC2 allows you to choose between Fixed Performance Instances (e.g. M3, C3, and R3) and Burstable Performance Instances (e.g. T2). Burstable Performance Instances provide a baseline level of CPU performance with the ability to burst above the baseline. T2 instances are for workloads that don’t use the full CPU often or consistently, but occasionally need to burst.
T2 instances’ baseline performance and ability to burst are governed by CPU Credits. Each T2 instance receives CPU Credits continuously, the rate of which depends on the instance size. T2 instances accrue CPU Credits when they are idle, and use CPU credits when they are active. A CPU Credit provides the performance of a full CPU core for one minute.