Issue
I have a process running on an AWS EC2 micro instance. It's been throttled because I've ran out of CPU Credit balance. I can't stop the process that is running, but I want to stop it throttling. Is there any way to increase my CPU Credit Balance without turning off the instance? I'm happy to pay Amazon some money to do this.
Solution
Yes!
You can use T2 Unlimited:
T2 Unlimited instances can burst above the baseline for as long as required. This enables you to enjoy the low T2 instance hourly price for a wide variety of general-purpose applications, and ensures that your instances are never held to the baseline performance. The basic T2 hourly instance price automatically covers all CPU usage spikes if the average CPU utilization of a T2 Unlimited instance over a rolling 24-hour period is at or below the baseline. For a vast majority of general-purpose workloads, T2 Unlimited instances provide ample performance without any additional charges. If the average CPU utilization exceeds the baseline over a 24-hour period, there is a flat additional rate per vCPU-hour.
...
You can switch from Standard to Unlimited, and from Unlimited to Standard, at any time on a running or stopped instance. For more information, see Launching a T2 Instance as Unlimited and Modifying the Credit Option for CPU Usage of a T2 Instance.
Answered By - John Rotenstein Answer Checked By - Pedro (WPSolving Volunteer)