Monday, August 30, 2021

AWS EC2: price of maxed out burstable instance in unlimited mode

The T instance families, namely T2, T3, T3a, and T4g are burstable. They are designed for low to moderate CPU utilization with intermittent heavy spikes. At times of low CPU utilization below a AWS-defined baseline, your instance collects credits that later can be spent on times of high CU utilization.

A credit gives you one minute of 100% CPU. The credits earned per hour are specified here: T2, T3 and T3a, T4g.

A burstable instance has a setting called "Credit specification" with the two options "standard" and "unlimited". This setting decides what happens if your instance runs out of credits: in standard mode, the CPU is gradually throttled to the baseline; in unlimited mode, the missing credits cost you surplus charges. See also the description of the standard mode and unlimited mode and the EC2 pricing page.

The surplus charge is 0.05 $ per hour and vCPU. So, a maxed out instance costs you (vCPUs - (credits earned per hour / 60)) * 0.05 per hour.

At the time of writing (2021-08-30), this gives for Linux (L) and Windows (W):

TypeBase $/hr (L)Base $/hr (W)Max $/hr (L)Max $/hr (W)
t2.nano0.006700.009000.054200.05650
t2.micro0.013400.018000.058400.06300
t2.small0.026800.036000.066800.07600
t2.medium0.053600.071600.133600.15160
t2.large0.107200.135200.177200.20520
t2.xlarge0.214400.255400.369400.41040
t2.2xlarge0.428800.490800.761300.82330
t3.nano0.006000.010600.101000.10560
t3.micro0.012000.021200.102000.11120
t3.small0.024000.042400.104000.12240
t3.medium0.048000.066400.128000.14640
t3.large0.096000.123600.166000.19360
t3.xlarge0.192000.265600.312000.38560
t3.2xlarge0.384000.531200.624000.77120
t3a.nano0.005400.010000.100400.10500
t3a.micro0.010800.020000.100800.11000
t3a.small0.021600.040000.101600.12000
t3a.medium0.043200.061600.123200.14160
t3a.large0.086400.114000.156400.18400
t3a.xlarge0.172800.246400.292800.36640
t3a.2xlarge0.345600.492800.585600.73280
t4g.nano0.004800.07480
t4g.micro0.009600.08960
t4g.small0.019200.03920
t4g.medium0.038400.11840
t4g.large0.076800.16680
t4g.xlarge0.153600.19360
t4g.2xlarge0.307200.70220

As you can see, especially small instances cost you multiple times the base price if maxed out, while bigger instances get a little more expensive than their C5a counterparts. However, C5a instances give you 3.3 GHz per CPU, while T3a for example gives you only 2.2 GHz.

TL;DR: If you need a lot of CPU continuously, don't use burstable instances. Use one of the C families instead!

Saturday, February 27, 2021

Replace battery of Samsung CLX 6220 FX printer

The Samsung CLX 6220 FX printer needs a CR2032 to keep settings like date and time. To replace it, remove the plastic cover at the back (2 screws at the top, 1 screw at the bottom). Result:
Remove the metal cover (2 screws at the top). Result: