I use T3 class for our k8s clusters, we want to know how to calculate the charge for burstable family class instance.
For example, I have an k8s cluster with 2 nodes using t3.large instance type, as the official document from aws said:
Each burstable performance instance continuously earns credit when it stays below the CPU baseline, and continuously spends credits when it bursts above the baseline. The amount of credits earned or spent depends on the CPU utilization of the instance:
- If the CPU utilization is below baseline, then credits earned are greater than credits spent.
- If the CPU utilization is equal to baseline, then credits earned are equal to credits spent.
- If the CPU utilization is higher than baseline, then credits spent are higher than credits earned.
If the credits earned are greater than credits spent, then the difference is called accrued credits, which can be used later to burst above baseline CPU utilization. That 's ok I know aws will charge this case with the price on-demand aws has said in official pricing
And another case: If the credits spent are more than credits earned, then the instance behavior depends on the credit configuration mode—Standard mode or Unlimited mode. For now we have 2 cases:
In Standard mode, when credits spent are more than credits earned, the instance uses the accrued credits to burst above baseline CPU utilization. If there are no accrued credits remaining, then the instance gradually comes down to baseline CPU utilization and cannot burst above baseline until it accrues more credits.
In Unlimited mode, if the instance bursts above baseline CPU utilization, then the instance first uses the accrued credits to burst. If there are no accrued credits remaining, then the instance spends surplus credits to burst. When its CPU utilization falls below the baseline, it uses the CPU credits that it earns to pay down the surplus credits that it spent earlier. The ability to earn CPU credits to pay down surplus credits enables Amazon EC2 to average the CPU utilization of an instance over a 24-hour period. If the average CPU usage over a 24-hour period exceeds the baseline, the instance is billed for the additional usage at a flat additional rate per vCPU-hour.
It 's easy for you if just use the the Standard mode, but if the Unlimited mode is used, how can we calculate the charge for the flat additional rate per vCPU-hour is shown in above quote from aws document?
I dont find what I'm looking for in above official document about burstable T class and in the EC2 pricing page too.
And please give me the formula if you can, I want to calculate the charge for the flat additional rate per vCPU-hour to show to my boss why we should or should not use T3 class.