Amazon EC2 SAA 高频

EC2 Placement Groups: Cluster, Spread, and Partition

Amazon EC2 Placement Groups

EC2placement grouphigh availabilityHPC
Last organized

Choose an EC2 placement strategy based on network performance, per-instance isolation, or partition-level fault domains.

In one sentence

A placement group controls the relative physical placement of EC2 instances: place them close for network performance or separate them to contain correlated failures.

Strategies

StrategyGoalScope and limitTypical use
ClusterLow latency and high throughputOne AZ; concentrated failure domainHPC and tightly coupled workloads
SpreadIsolate a small number of critical instancesUp to 7 running instances per AZ per groupCritical nodes
PartitionGroup many nodes into fault domainsUp to 7 partitions per AZ; many instances per partitionHDFS, Cassandra, Kafka
  • Cluster optimizes performance; it is not a Multi-AZ HA design.
  • The “7” limit means instances for Spread and partitions for Partition.
  • A partition is a set of isolated racks, not one rack.
  • Placement groups are different from capacity reservations, dedicated hosts, and Auto Scaling groups.

Decision cues

  • Extremely low latency and node-to-node throughput → Cluster.
  • A few critical instances that should not share hardware → Spread.
  • A large distributed system with replica-aware placement → Partition.

Remember

Cluster trades concentration for speed, Spread isolates individual instances, and Partition isolates groups at scale.