CPU Credits

CPU Credits are a key feature of AWS EC2 T2 and T3 instance types, enabling these instances to handle variable workloads efficiently by allowing bursts of CPU performance when needed.

In summary, CPU Credits provide a flexible and cost-effective way for T2 and T3 instances to manage workloads that require occasional bursts of performance while also allowing for cost savings when baseline usage is maintained.

Example of CPU Credits

Scenario: Suppose you have a T3 instance (e.g., t3.medium) running a web application with fluctuating traffic patterns.

  1. Baseline Performance: The t3.medium instance has a baseline performance of 20% CPU utilization. This means it can use the CPU at this level without consuming any CPU credits.
  2. Traffic Patterns:
  3. Credit Accumulation:
  4. Credit Usage:
  5. Unlimited Mode:

Summary:

In this example, the T3 instance effectively manages its workload using CPU Credits, allowing it to handle increased traffic without downtime while maintaining cost efficiency. By monitoring usage and credits, you can ensure optimal performance during peak times while avoiding unnecessary costs during regular operation.

Reference:

Burstable performance instances - Amazon Elastic Compute Cloud