CPU credit balance suddenly dropped for my instance - AWS

0 votes
I am using a T2 EC2 instance and the CPU credit balance suddenly dropped for my instance. Why did this happen?
Oct 21, 2019 in AWS by Hannah
• 18,060 points
278 views

1 answer to this question.

0 votes

Hi @Hannah, when you stop your instance all your acquired credits are removed. When you relaunch an instance you have zero acquired credits and only left with launch credits. 

So basically your CPU credit balance increases if the credits spent are less than credits earned in the first 5-minute interval for starting the instance and vice versa. 

Mathematically your earned credits can be calculated using the following formula:

CPUCreditBalance = prior CPUCreditBalance + [Credits earned per hour * (5/60) - CPUCreditUsage]

For monitoring your CPU credits, have a look at this: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-monitoring-cpu-credits.html

answered Oct 21, 2019 by Imran

Related Questions In AWS

0 votes
3 answers
0 votes
1 answer

How do I enable SSH for my AWS-EB instance?

Using the EB CLI to do eb ...READ MORE

answered Oct 9, 2018 in AWS by Archana
• 4,150 points
872 views
0 votes
1 answer

What AWS EC2 instance is more suitable for Chat Application?

I would recommend starting with a T2.micro ...READ MORE

answered Jul 9, 2018 in AWS by Priyaj
• 57,550 points
165 views
0 votes
1 answer

What is CPU Credit Balance in EC2?

CPU Credit regulates the amount CPU burst ...READ MORE

answered Jul 12, 2018 in AWS by Priyaj
• 57,550 points
153 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

This can be done using the following ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,600 points
703 views