Compute & Load Balancing Flashcards
EC2 R Instance Types
Applications that need a lot of RAM (e.g in memory cache)
EC2 C Instance Types
Applications that need good CPU (e.g databases or compute)
EC2 M Instance Types
Applications that are balanced (e.g general or web apps)
EC2 I Instance Types
Applications that need good local I/O (e.g databases)
EC2 G Instance Types
Applcations that need a GPU (e.g video rendering or machine learning)
EC2 T2/T3 Instance Types
Burstable instances
EC2 Cluster Placement Strategy
Clusters instances into a low latency group in a single AZ
* Pro: Low latency
* Con: If the rack fails, all instances fail
EC2 Spread Placement Strategy
Spreads instances across underlying hardware
* Pro: span across AZs, reduce risk of simultaneous failure
* Con: Limited to 7 instances per group per AZ
EC2 Partition Placement Strategy
Spreads instances across logical partitions such that groups of instances in one partition do not share the underlying hardware with groups in different partitions
How to move instances between placement groups
- Stop the instance
- Use the CLI to modify the placement
- Start the instance
EC2 Instance Launch Type
- On demand: short workload, predictable pricing, reliable
- Spot: short workload, cheap, can lose instances
- Reserved: minimum 1 year
- Dedicated: no other customers will share hardware
- Dedicated host: book an entire physical server and control instance placement
EC2 Graviton
Family of processors designed to deliver the best price performance for your cloud workloads
EC2 Enhanced Networking
Higher bandwidth, higher pps, lower latency
* Elastic Network Adapter (ENA) up to 100 Gbps
* Legacy: Intel 82599 VF
Elastic Fabric Adapter
Improved Elastic Network Adapter, only works for Linux. Great for inter node communication, tightly coupled workloads.
Auto Scaling Groups
Dynamic Scaling Policies
- Target tracking scaling: Increase and decrease the capacity based on a CloudWatch metric and a target value
- Simple step scaling: Increase and decrease capacity based on a set of scaling adjustments
- Scheduled actions