Amazon EC2 T2 Micro Instance CPU credit and why your server run at 100 CPU percent VPS Free Tier

preview_player
Показать описание

[00:03] Free Tier plan of Amazon AWS is awesome.
However, the way they cost/restrict the bundled T2 Micro Instance may confuse someone.

Remember, this T2 instance is designed for small applications, which can accept idle state like blog, shop online, etc.
During instance/server runtime, they will be allocated 30 credits for small startups.
Each hour, 6 credits will be added.

1 credit is for 100% CPU usage/minute.
So 6 credits/hour equal to they allow you to run continuously 10%/hour.
If your app/server idle (~ 10%), this credit will remain, build up your balance for further usage in the next 24 hours.

[00:24] You can monitor Credit usage/balance as well as other factors in Monitoring console of the EC2 Dashboard.

This is my game server.
It constantly eats more than 10% CPU, so the Credit histogram will go down like the mountain flank, when it reaches the bottom, your 2.5 GHz Xeon will turn out into a Mobile chip, your app hangs, CPU became 100% without clear evidence.

In the first-time play with a game server on Amazon Free Tier, face 100% CPU cause my mind to begin to think about terrible service or something like that.
And because I never care about resource usage (my blog) before, on shared hosting/another T2 instance.
I'm sure that other people will think like that.

[1:29] A quick workaround is a shutdown then turn on your instance again (not reboot), and 30 startup credits will be rewarded.

[1:45] To have a clear view, look at these threads.

[11:20] My little WordPress blog in another Free Tier instance doesn't need to care about this stuff.

If you are running something like my game server, consider automating schedule idle it for a while to build Credit balance up.
In another tutorial, I will help you force processes idle in defined time ranges, effortless.

[13:28] Let's use this Free Tier in a controlled manner to maximize its benefits :

Do not forget to
LIKE, SHARE, SUBSCRIBE
and feel free to ask me questions or discuss with everyone :3 💋 👓 😘
Рекомендации по теме