A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Scenario 1 Let’s compare m7i-flex.large and t4g.large with Unlimited mode enabled while CPU usage fluctuates over five days. Note that t4g.large can earn 36 CPU credits per hour, and the maximum earned credits that can be accrued is 864. The instance is initialized and for the first 6-hour period remains idle, so CPU utilization is 0%. In that time, 216 credits are earned. The CPU usage for the next 3 hours increases to 60%. That uses half of your CPU credits, leaving you with a balance of 108 credits. For the next 6 hours, CPU utilization stays at 25%. 36 credits are earned. The balance is 144. Next, CPU utilization stays at 40% for 18 hours, using 216 credits. The credit balance is -72. For 12 hours, CPU utilization is at 30%. You neither gain nor lose credits. The CPU usage for the next 18 hours increases to 80%. That uses 1080 credits putting the balance to -1152. For the next 6 hours, CPU utilization stays at 25%. 36 credits are earned. The balance is now -1116. CPU usage goes back up to 55% for 24 hours. 720 credits are used. The balance is -1836. For 15 hours, CPU use is 75%. 630 credits are used and the balance is -2466. Finally, for 12 hours before the instance is stopped, the CPU uses 60%. 432 credits are used for a total of -2898 credits. The CPU surplus credits charged is 2898, which corresponds to 48.3 vCPU-hours. From there, we can calculate the total cost: 48.3 vCPU-hours * $0.04 * 2 CPUs = $3.86 The charge for the 120 hours of the On-Demand hourly rate is: $0.0672 * 120 hours = $8.07 So the total cost is $11.928 for t4g.large. m7i-flex.large is much simpler to calculate: $0.09576 * 120 hours = $11.49 m7i-flex.large provides a 4% savings in this case. | ||||||||||||||||||||||||
2 | |||||||||||||||||||||||||
3 | Hour | CPU Utilisation | Earned | Spent | Credit Balance | T4g.large | Number of vCPU | Baseline performance | T4 additional charge | m7i-flex.large | |||||||||||||||
4 | 1 | 0 | 36 | 0 | 0.0672 | 2 | 30% | 0.04 | 0.09576 | ||||||||||||||||
5 | 2 | 0 | 36 | 0 | |||||||||||||||||||||
6 | 3 | 0 | 36 | 0 | Spent | 7,398.00 | |||||||||||||||||||
7 | 4 | 0 | 36 | 0 | Earn | 4,320.00 | |||||||||||||||||||
8 | 5 | 0 | 36 | 0 | Surplus CPU credits vCPU-min | 3,078.00 | |||||||||||||||||||
9 | 6 | 0 | 36 | 0 | 216 | Surplus CPU credits vCPU-hour | 51.30 | ||||||||||||||||||
10 | 7 | 60% | 36 | 72 | Additional charge (1) | 2.05 | |||||||||||||||||||
11 | 8 | 60% | 36 | 72 | T4g.large in 120h - OD price (2) | 8.06 | |||||||||||||||||||
12 | 9 | 60% | 36 | 72 | 108 | Total charge (1+2) | 10.12 | ||||||||||||||||||
13 | 10 | 25% | 36 | 30 | |||||||||||||||||||||
14 | 11 | 25% | 36 | 30 | m7i-flex.large in 120h | 11.49 | |||||||||||||||||||
15 | 12 | 25% | 36 | 30 | |||||||||||||||||||||
16 | 13 | 25% | 36 | 30 | Using T4g charge is cheaper than m7i-flex | 11.97% | |||||||||||||||||||
17 | 14 | 25% | 36 | 30 | |||||||||||||||||||||
18 | 15 | 25% | 36 | 30 | 144 | ||||||||||||||||||||
19 | 16 | 40% | 36 | 48 | |||||||||||||||||||||
20 | 17 | 40% | 36 | 48 | |||||||||||||||||||||
21 | 18 | 40% | 36 | 48 | |||||||||||||||||||||
22 | 19 | 40% | 36 | 48 | |||||||||||||||||||||
23 | 20 | 40% | 36 | 48 | |||||||||||||||||||||
24 | 21 | 40% | 36 | 48 | |||||||||||||||||||||
25 | 22 | 40% | 36 | 48 | |||||||||||||||||||||
26 | 23 | 40% | 36 | 48 | |||||||||||||||||||||
27 | 24 | 40% | 36 | 48 | |||||||||||||||||||||
28 | 25 | 40% | 36 | 48 | |||||||||||||||||||||
29 | 26 | 40% | 36 | 48 | |||||||||||||||||||||
30 | 27 | 40% | 36 | 48 | |||||||||||||||||||||
31 | 28 | 40% | 36 | 48 | |||||||||||||||||||||
32 | 29 | 40% | 36 | 48 | |||||||||||||||||||||
33 | 30 | 40% | 36 | 48 | |||||||||||||||||||||
34 | 31 | 40% | 36 | 48 | |||||||||||||||||||||
35 | 32 | 40% | 36 | 48 | |||||||||||||||||||||
36 | 33 | 40% | 36 | 48 | -72 | ||||||||||||||||||||
37 | 34 | 30% | 36 | 36 | |||||||||||||||||||||
38 | 35 | 30% | 36 | 36 | |||||||||||||||||||||
39 | 36 | 30% | 36 | 36 | |||||||||||||||||||||
40 | 37 | 30% | 36 | 36 | |||||||||||||||||||||
41 | 38 | 30% | 36 | 36 | |||||||||||||||||||||
42 | 39 | 30% | 36 | 36 | |||||||||||||||||||||
43 | 40 | 30% | 36 | 36 | |||||||||||||||||||||
44 | 41 | 30% | 36 | 36 | |||||||||||||||||||||
45 | 42 | 30% | 36 | 36 | |||||||||||||||||||||
46 | 43 | 30% | 36 | 36 | |||||||||||||||||||||
47 | 44 | 30% | 36 | 36 | |||||||||||||||||||||
48 | 45 | 30% | 36 | 36 | -72 | ||||||||||||||||||||
49 | 46 | 80% | 36 | 96 | |||||||||||||||||||||
50 | 47 | 80% | 36 | 96 | |||||||||||||||||||||
51 | 48 | 80% | 36 | 96 | |||||||||||||||||||||
52 | 49 | 80% | 36 | 96 | |||||||||||||||||||||
53 | 50 | 80% | 36 | 96 | |||||||||||||||||||||
54 | 51 | 80% | 36 | 96 | |||||||||||||||||||||
55 | 52 | 80% | 36 | 96 | |||||||||||||||||||||
56 | 53 | 80% | 36 | 96 | |||||||||||||||||||||
57 | 54 | 80% | 36 | 96 | |||||||||||||||||||||
58 | 55 | 80% | 36 | 96 | |||||||||||||||||||||
59 | 56 | 80% | 36 | 96 | |||||||||||||||||||||
60 | 57 | 80% | 36 | 96 | |||||||||||||||||||||
61 | 58 | 80% | 36 | 96 | |||||||||||||||||||||
62 | 59 | 80% | 36 | 96 | |||||||||||||||||||||
63 | 60 | 80% | 36 | 96 | |||||||||||||||||||||
64 | 61 | 80% | 36 | 96 | |||||||||||||||||||||
65 | 62 | 80% | 36 | 96 | |||||||||||||||||||||
66 | 63 | 80% | 36 | 96 | -1,152 | ||||||||||||||||||||
67 | 64 | 25% | 36 | 30 | |||||||||||||||||||||
68 | 65 | 25% | 36 | 30 | |||||||||||||||||||||
69 | 66 | 25% | 36 | 30 | |||||||||||||||||||||
70 | 67 | 25% | 36 | 30 | |||||||||||||||||||||
71 | 68 | 25% | 36 | 30 | |||||||||||||||||||||
72 | 69 | 25% | 36 | 30 | -1,116 | ||||||||||||||||||||
73 | 70 | 55% | 36 | 66 | |||||||||||||||||||||
74 | 71 | 55% | 36 | 66 | |||||||||||||||||||||
75 | 72 | 55% | 36 | 66 | |||||||||||||||||||||
76 | 73 | 55% | 36 | 66 | |||||||||||||||||||||
77 | 74 | 55% | 36 | 66 | |||||||||||||||||||||
78 | 75 | 55% | 36 | 66 | |||||||||||||||||||||
79 | 76 | 55% | 36 | 66 | |||||||||||||||||||||
80 | 77 | 55% | 36 | 66 | |||||||||||||||||||||
81 | 78 | 55% | 36 | 66 | |||||||||||||||||||||
82 | 79 | 55% | 36 | 66 | |||||||||||||||||||||
83 | 80 | 55% | 36 | 66 | |||||||||||||||||||||
84 | 81 | 55% | 36 | 66 | |||||||||||||||||||||
85 | 82 | 55% | 36 | 66 | |||||||||||||||||||||
86 | 83 | 55% | 36 | 66 | |||||||||||||||||||||
87 | 84 | 55% | 36 | 66 | |||||||||||||||||||||
88 | 85 | 55% | 36 | 66 | |||||||||||||||||||||
89 | 86 | 55% | 36 | 66 | |||||||||||||||||||||
90 | 87 | 55% | 36 | 66 | |||||||||||||||||||||
91 | 88 | 55% | 36 | 66 | |||||||||||||||||||||
92 | 89 | 55% | 36 | 66 | |||||||||||||||||||||
93 | 90 | 55% | 36 | 66 | |||||||||||||||||||||
94 | 91 | 55% | 36 | 66 | |||||||||||||||||||||
95 | 92 | 55% | 36 | 66 | |||||||||||||||||||||
96 | 93 | 55% | 36 | 66 | -1,836 | ||||||||||||||||||||
97 | 94 | 75% | 36 | 90 | |||||||||||||||||||||
98 | 95 | 75% | 36 | 90 | |||||||||||||||||||||
99 | 96 | 75% | 36 | 90 | |||||||||||||||||||||
100 | 97 | 75% | 36 | 90 |