Types of instances (I=IOPS G=GPU C=Compute R=memoRy F=Hardware Accelerated)
On demand Pay by the second (Linux) hour (windows)
Reserved Instances 1yr or 3yr
Standard upto 75% cheaper than OD
Convertible (50% cheaper than OD) can be converted to another RI of same or better class (Example: OS change, CPU upgrade, mem upgrade)
Scheduled Reserved Instances: When you need an EC2 for a fraction of a day/week/month
Spot instances
Choose bid price
If spot goes above bid you loose your instances
Dedicated Hosts
Physical server dedicated
On demand or reserved
Useful for regulatory confirmations, licencing requirement of software vendors etc
EC2 Types (acloud.guru Dr Mc GIFT PX acronym). Unless the type ends with letter ‘a’ (stand for AMD), they use Intel CPUs. Only exception is A1 which is AWS Graviton ARM processor based.
General Purpose family
A1 ARM based, General Purpose, fixed performance (non burstable, unlike T)
T Low cost, burstable performance
T3a AMD EPYC CPU
MAC Apple Mac mini based
M fixed performance (non burstable, unlike T)
Compute Optimized family
C type
Storage Optimized family
I IOPS
D Density
Accelerated computing family
G Graphics
F Hardware accelerated (FPGA)
P Graphics
Inf1 machine learning inference
Memory Optimized family
R
X extreme Memory
Z
EC2 Placement Groups
Logical grouping of EC2 instances inside a single AZ (can’t span multiple AZ’s)
EC2 instances inside a group are assured to be connected to each other using a low latency, high network throughput 10 GB/S intranet
Two types
Cluster: Make them close
Spread: Opposite of cluster. Spread as far as possible
Only high end EC2’s such as Memory optimized (M), Compute optimized (C), Storage Optimized(I), GPU Optimized (G) can use placement groups.
Recommended to launch homogeneous (same size/family) EC2s inside a Placement Group
Moving a running EC2 into a PG is not supported. Only while launching, you can choose your PG
The data in an instance store persists only during the lifetime of its associated instance. If an instance reboots (intentionally or unintentionally), data in the instance store persists. However, data in the instance store is lost under the following circumstances: