Articles → AWS → Placement Groups In AWS

Placement Groups In AWS






Purpose





Different Strategies Of The Placement Group




  1. Cluster → In this strategy, the EC2 instances are placed close to each other in the same availability zone
  2. Partition → In this strategy, the EC2 instances are grouped in a segment called Partition. Each partition does not share the same underlying hardware
  3. Spread → In this strategy, the small group of EC2 instances is placed on distinct hardware


 ClusteredSpreadPartition
WhatInstances are placed into a low-latency group within a single AZInstances are spread across underlying hardwareInstances are grouped into logical segments called partitions which use distinct hardware
WhenNeed low network latency and/or high network throughputReduce the risk of simultaneous instance failure if underlying hardware failsNeed control and visibility into instance placement
ProsGet the most out of enhanced networking InstancesCan span multiple AZsReduces the likelihood of correlated failures for large workloads.
ConsFinite capacity: recommend launching all you might need upfrontMaximum of 7 instances running per group, per AZPartition placement groups are not supported by Dedicated Hosts



How To Create The Placement Group?




Picture showing the Placement Groups menu in EC2 dashboard
Click to Enlarge



Picture showing the Create placement group button for creating the new placement group
Click to Enlarge



FieldValue
Name< Custom placement group name>
Placement strategyCluster | Spread | Partition
Number of partitions< Number of partitions >
Spread levelHost (Outposts only) | Rack (No restrictions)This field is visible only if “Spread” is selected in “Placement strategy”.


Picture showing the create placement group screen with placement strategy as cluster
Click to Enlarge

Picture showing the create placement group screen with placement strategy as spread
Click to Enlarge

Picture showing the create placement group screen with placement strategy as partition
Click to Enlarge



Picture showing the placement group created in aws console
Click to Enlarge


How To Assign A Placement Group To An EC2 Instance?




Picture showing assigning the placement group to an EC2 instance
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, July 22, 2022
 
Updated On  -  Monday, January 16, 2023

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250