What are placement groups?
IntermediateConceptEC2, Auto Scaling and Load Balancing
Answer
- Cluster: pack instances close in one AZ for low-latency, high-throughput networking (HPC, tightly coupled jobs); higher risk of correlated failure.
- Spread: place each instance on distinct hardware, up to 7 per AZ per group, for a few critical instances.
- Partition: groups of instances on separate racks (up to 7 partitions per AZ) for large distributed systems like HDFS, Cassandra and Kafka, with partition metadata available to the application.
A InsufficientInstanceCapacity error is common with cluster groups; launch all instances at once and use one instance type.