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
Is there a limit of how many instances can you launch per AZ when using Spread placement groups? What do you achieve?
Yes, 7 instances per AZ.
It ensures that a failure in a rack will not affect the rest of the placement group.
What do Spread placement groups provide?
HIghest level of availability and resilience. Each instance runs in a different rack by default
Are spread placement groups supported by dedicated instances or dedicated hosts?
No.
Describe use cases of Spread placement groups:
- Small number of critical instances that need to be kept separated from each other
- Several mirrors of an application
Define Partition placement groups
it is a placement group that defines groups of instances spread apart, each group is in a different HW.
What is the main difference between Spread and Partition placement groups?
The main difference is you can launch as many instances in each partition
as you desire.
How many partitions (groups) can you create per AZ?
7 partitions maximum per AZ.
Where can instances be places when using partitions placement groups?
They can be places in specific partitions or autoplaced by AWS.
Are partitions placement groups supported on Dedicated hosts?
No.