Friday, 4 September 2020

EC2 placement groups

what is EC2 placement group?

It is just the way of placing EC2 instances.



They are three types of placement groups:

1. Clustered placement group.
2.Spread placement group.
3.partitioned placement group.

1. Clustered placement group: it is a grouping of instances within a single availability zone. This placement groups are recommended for applications that need low network latency, high network throughput, or both.

usually all the EC2 instances in this placement are maintained very close and in the same availability zone.

 2.Spread placement group: This placement groups are recommended for applications that have a small number of critical instances that should be kept separate from each other.


it is basically design to avoid hardware failure.
it is basically opposite to Clustered placement group.  
Each EC2 instance is completely individual in this placement group.

3.partitioned placement group:








Hands on:

from the EC2 console, Navigate to placement Groups option.



Choose Create Placement Group option.




Enter details:                                                                                 
Name:  <description>
Strategy: Cluster or Spread

Finally click on Create option.




if we create one cluster and one spread placement group. the placement group page looks like below.




Result: After the creation of 2 placement groups. while launching EC2 instance. Placement group can be selected



No comments:

Post a Comment