-
Notifications
You must be signed in to change notification settings - Fork 0
EC2 Advanced
abk edited this page Nov 13, 2019
·
1 revision
EC2 Advanced
Key Management Service (It’s a regional service)
- AWS Managed keys
- AWS managed, least freedom since AWS managed.
- Customer managed keys
- Customer managed
- More control and can do key rotation etc.
EC2 performance are controlled by:
- EBS-optimized
- Enhanced Networking
- Enhanced networking using SR-IOV.
- Placement groups - there are 3 types of Placement Groups
- Cluster PG
- Purely designed for performance
- One AZ ONLY.
- EC2 are physically close together.
- Partition PG
- Maximum application availability
- Partition Placement Groups reside inside AZ. One more more PPG can reside in AZ
- Multiple AZ for Partition PG based EC2.
- Single region and multiple AZs
- Spread PG
- Purely for availability
- Max 7 instances / AZ
- Email services.
- Cluster PG
Different Billing Models
- On demand billing
- 60second usage
- Type and size of instance including region that’s launched in.
- Use when
- Default or unknown load
- Anything between reserved / spot
- Short term workloads that can’t tolerate interruption
- Spot billing
- Spare capacity may be available in AWS based on the region and AZ
- Bid for the spot price and if you get , you will be able to launch EC2 instance.
- Instances can be terminated though.
- Spot prices can go up and down.
- When will you pickup spot price?
- If the work is not time critical and termination of instance is NOT an issue for your app, one can use spot instances.
- If apps can’t withstand failure, do NOT use spot instances.
- When to use?
- Bursty workloads
- Cost-critical, which can cope interruption.
- Reserved Instances
- Commitment for 1 or 3 years.
- Instance reservation you will pay for irrespective of running, stopped or terminated state of the EC2.
- Regional reservation , flexibility on type of EC2 on what you reserved.
- Gives flexibility.
- Zonal reservation , the type of EC2 is fixed on what you have reserved.
- Gives capacity.
- When to use?
- Base/consistent load
- Known and understood growth
- Critical systems / components.