API
The Gcore Customer Portal is being updated. Screenshots may not show the current version.
Edge Cloud
Edge Cloud
OverviewBillingTerraform
API
Chosen image
Home/Edge Cloud/Virtual Machines/Placement Groups/Overview

About placement groups

A placement group is a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.

Types of groups

There are three types of groups:

  • Affinity groups assemble Virtual Machines on the same hardware. Machines launched in one affinity group will exchange data faster because they are located on the same server.

  • Anti-affinity groups work the opposite way: All VMs in this group will be separated across different physical hardware. This increases fault tolerance of a cluster: Even if something happens to one server, machines on the other(s) will remain available.

  • Soft anti-affinity groups encourage, but don't strictly enforce, the separation of Virtual Machines. Unlike a strict anti-affinity policy, where machines may never be placed together, soft anti-affinity allows placement on the same hardware when it is necessary due to factors like resource constraints or high demand. It is suitable for users who want to use the anti-affinity policy by default while also avoiding machine creation failures if an unused host was not found.

FAQ

What happens if you don’t add instances to a placement group? They will be placed on physical servers randomly—they could end up all on the same server or spread across different ones.

How many placement groups a machine can belong to at the same time? A machine can only belong to one group. It is impossible to add a machine to two different groups at once.

Was this article helpful?

Not a Gcore user yet?

Discover our offerings, including virtual instances starting from 3.7 euro/mo, bare metal servers, AI Infrastructure, load balancers, Managed Kubernetes, Function as a Service, and Centralized Logging solutions.

Go to the product page