aboutsummaryrefslogtreecommitdiff
path: root/content/notes/aws-solutions-architect/7.ec2-placement-groups.md
blob: 85f4f556b1a39bd39cfdbc12b46d2639adb47d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: 07 - ec2 placement-groups
course: ["aws solutions architect"]
---

# EC2 Placement Groups

Placement groups allow you to define where your EC2 instances are deployed on AWS infrastructure.

A placement group is either:

1. _A cluster_: puts your instances in a low latency group in the same AZ. This helps with networking as instances are close to one another. Drawback is if the AZ fails, they all fail. **use case**: Good for big data jobs, apps that need low latency between instances.
2. _Spread_: Think of this as opposite to clusters. Each instance is on different hardware across different AZs. This means reduced failure risk. Limited to 7 AZ per placement group. **Use case**: maximum high availability.
3. _Partition_: spreads instances across different partitions within an AZ. Each partition represents a rack in AWS. Instances are distributed across different hardware racks and AZs in same region. **use cases**: Big data application, which are petition aware.

![placement groups](/images/aws/placement-groups.png)