Compute & Load Balancing Flashcards
(78 cards)
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 Instance Connect
Secure way to connect to your Linux instances over SSH. You use IAM policies and principals to control SSH access to your instances, removing the need to share and manage SSH keys.
Auto-Scaling EC2
Attribute-based instance type selection
Specify a set of instance attributes that describe your compute requirements
* Optimal flexibility for Spot Instances
* Easily use the right instance types
* Automatic use of new instance types
AWS Saving Plans
Get a discount based on long-term usage, any usage beyond is billed as on-demand
EC2 Saving Plans
Up to 72% discount (same as standars RIs)
1. Select instance family and region
2. Flexible across size, OS and tenancy
Compute Saving Plans
Up to 66% discount (same as Convertible RIs)
1. Ability to move between instance families, region, compute type (EC2, Fargate, Lambda)
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
Auto Scaling Groups
Predictive Scaling
Continously forecast load and schedule scaling ahead
EC2 Spot Instances discount
Up to 90% compared to On-Demand
Spot Fleets
Set of Spot Instances and On-Demand Instances.
- Define launch pools (instance type, OS, AZ)
- Can have multiple pools to choose from
Strategies to allocate Spot Instance
- lowestPrice
- diversified distributed across all pools
- capacityOptimized
- priceCapacityOptimized (recommended) pools with highest capacity, then select the lowest price