Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EC2 Placement Groups: Partition vs Spread

Is there a good comparison table for the two types of AWS EC2 Placement Groups?

  • Partition
  • Spread

I have read the AWS Documentation but I am still a bit confused.

like image 342
leeyuiwah Avatar asked Jun 04 '19 15:06

leeyuiwah


People also ask

What is the difference between spread and partition placement groups?

Spread placement group: It spread the instances across underlying hardware. Partition placement group: It spreads the instances across many different partitions within an AZ.

What is spread placement group in AWS?

A spread placement group places instances on distinct hardware. A partition placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition. For more information, see Placement Groups in the Amazon EC2 User Guide.

How many instances can be within a spread Placement Group?

Spread placement group rules and limitations A rack spread placement group supports a maximum of seven running instances per Availability Zone. For example, in a Region with three Availability Zones, you can run a total of 21 instances in the group, with seven instances in each Availability Zone.

Which type of placement group is advantageous?

Cluster placement groups are generally advantageous in case of hardware failure. Cluster Placement Group is a logical group of examples within a single availability area.


1 Answers

Firstly, a Rack server, is a computer dedicated to be used as a server and designed to be installed in a framework called a rack. Each rack has its own network and power source.

In Cluster Placement group, all instances are placed within a rack. If the rack fails (hardware failure), all instances fails at the same time. Hence, this is not suitable for High Availability or mission critical applications. But ideal for High Performance applications, as all the instances are in very close proximity to each other.

In Spread Placement group, each instance is placed in its own distinct rack. Each rack has at most one instance. A rack failure (hardware failure) will not affect more than one instance. Hence, this is ideal for High Availability or mission critical applications. But not really suitable for High Performance applications, as the instances are spread much further apart.

In Partition Placement group, each partition represents a rack. If a rack fails (hardware failure), it may affect multiple instances on that rack, but only within that partition. This way, failure of one partition is isolated from the rest of the partitions. So, if you have replication in other partitions, then your data will be safe. This placement group strikes a balance between High Performance and High Availability. This will be good for Big data applications like HDFS, HBase, Cassandra, Kafka, etc. which needs High Performance, but must also be Fault Tolerant at the same time.

like image 154
Vishnu Vivek Avatar answered Oct 12 '22 13:10

Vishnu Vivek