aws-cdk-lib.aws_ec2.PlacementGroupStrategy

enum PlacementGroupStrategy

LanguageType name
.NETAmazon.CDK.AWS.EC2.PlacementGroupStrategy
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#PlacementGroupStrategy
Javasoftware.amazon.awscdk.services.ec2.PlacementGroupStrategy
Pythonaws_cdk.aws_ec2.PlacementGroupStrategy
TypeScript (source)aws-cdk-lib » aws_ec2 » PlacementGroupStrategy

Which strategy to use when launching instances.

Members

NameDescription
CLUSTERPacks instances close together inside an Availability Zone.
PARTITIONSpreads your instances across logical partitions such that groups of instances in one partition do not share the underlying hardware with groups of instances in different partitions.
SPREADStrictly places a small group of instances across distinct underlying hardware to reduce correlated failures.

CLUSTER

Packs instances close together inside an Availability Zone.

This strategy enables workloads to achieve the low-latency network performance necessary for tightly-coupled node-to-node communication that is typical of high-performance computing (HPC) applications.


PARTITION

Spreads your instances across logical partitions such that groups of instances in one partition do not share the underlying hardware with groups of instances in different partitions.

This strategy is typically used by large distributed and replicated workloads, such as Hadoop, Cassandra, and Kafka.


SPREAD

Strictly places a small group of instances across distinct underlying hardware to reduce correlated failures.