EC2 Placement Groups Flashcards
Normally, when you launch an instance in AWS, fo you select where it will be placed physically within a datacenter?
No. AWS chooses the EC2 host that is the best for you based on the AZ where you are launching the instance on.
What is the main advantage of Cluster placement groups?
- It packs instances close together, with this, it achieves the highest level of performance possible in EC2.
- Cluster placements need to take part within the same AZ.
- All members have direct connections to each other
- 10 Gbps single stream (vs 5 Gbps normally).
- Lowest latency and max PPS (packets per second) possible in AWS - you have to use enhanced networking in all the instances as prerequirement to be high performant.
With Cluster placements groups, where are the instances normally placed?
Generally in the same rack but they could even be placed in the same EC2 host.
How much t-put in a single stream can you achieve using cluster placement groups?
10 Gbps single stream vs 5 Gbps normally.
Describe the disadvantages of using cluster placement groups:
If the HW fails, the entire cluster will fail.
Can you use Cluster placement groups in multiple AZs?
No, ONE AZ ONLY. The first AZ used will lock down the cluster to that AZ.
Do Cluster placement groups require special instance types?
Yes, not all the instance types are supported for cluster placement groups.
What is the best practice when lauching instances using Cluster placement groups?
- Use the same instance type.
- Launch all the instances at once (not mandatory)
What could happen if you do not launch all the instances in a cluster placement group at the same time?
You could get an error related with capacity when you are adding additional instances.
If this happens, you can stop all the instances and run them at the same time in another placement group.
What is the only way of achieving 10 Gbps of performance in a single stream?
Using cluster placement groups
What is the main purpose of using spread placement groups?
Keep instances separated = makes sure that the intances use diffent underlazing hardware.
What are Spread placement groups designed for?
This placement group is designed to provide the best resilience and availability for an application.
What are Cluster placement groups designed for?
Achieves the highest level of performance possible in EC2.
- Low latency, max PPS (packets per second) and best performance in a single stream (10 Gbps).
Can you span Cluster Placement groups in multiple AZs?
No. Only in one AZ
Can you span Spread placement groups in multiple AZs?
Information will be put on distinct racks with their own network or power supply