> For the complete documentation index, see [llms.txt](https://docs.neevcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neevcloud.com/neevcloud-products/placement-groups/managing-placement-groups.md). Agents can also search and read this documentation through its [MCP server](https://docs.neevcloud.com/~gitbook/mcp).

# Managing Placement Groups

## How to Create a Placement Group

1. In the left sidebar, navigate to **Servers**
2. Click the **Placement Groups** tab
3. Click **+ Create Placement Group**
4. Select your **Location** (Mumbai or Central India)
5. Enter a **Name** for the group (e.g., `db-cluster`, `web-ha-group`)
6. Select your **Policy**
7. Click **+ Create**

Once created, the group appears in the Placement Groups list showing its Policy, Member count, Region, and Creation date.

{% hint style="warning" %}
You must choose a policy at creation time. **The policy cannot be changed after the group is created.**
{% endhint %}

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FC9jW8LWUlsJSztK3UGpS%2Fimage.png?alt=media&amp;token=06b06604-fb29-4a5e-a0b9-d082f890ce25" alt=""><figcaption></figcaption></figure>

### How to Add a Server to a Placement Group

A server must be assigned to a Placement Group **at creation time**. You cannot add an existing running server to a group after it has been launched.

When creating a new server:

1. Go to **Servers → Create Server**
2. Fill in your server details (image, flavor, network, etc.)
3. In the **Placement Group** dropdown, select your group
4. Complete and launch the server

The server will appear as a **Member** in your Placement Group once its status is Active.

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FKM5UVV8PVIQn6xSFM7ON%2Fimage.png?alt=media&amp;token=1a3da8b8-c0f4-4802-ac5d-3e7c93844a6c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fw8rVeHq0m7ubCmgk8p4y%2Fimage.png?alt=media&amp;token=4b58fc0f-e932-4b6b-a896-6ff3c2b22210" alt=""><figcaption></figcaption></figure>

***

### Viewing Placement Group Details

Click on any Placement Group name from the list to open its detail view. This page shows:

* **Policy** — the active placement rule
* **Members** — total number of servers currently in the group
* **Region** — the region where the group is deployed
* **Created At** — timestamp of when the group was created
* **Members table** — lists each server with its name, status, flavor, vCPUs, RAM, and IP address

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FrTUhsghEAwWmBCDRdtya%2Fimage.png?alt=media&amp;token=11bc5c29-b79d-4262-8cde-6cab814c931d" alt=""><figcaption></figcaption></figure>

***

### Examples

#### Example 1 — High-Availability Web Cluster

Run 3 web servers that survive individual physical host failures.

**Policy:** Anti-Affinity | **Region:** Mumbai

**Steps:**

1. Create a Placement Group named `web-ha` with policy **Anti-Affinity** in Mumbai
2. Create `web-server-1` and assign it to `web-ha`
3. Create `web-server-2` and assign it to `web-ha`
4. Create `web-server-3` and assign it to `web-ha`

Each server lands on a separate physical host. A hardware failure on any one host takes down only that server — the other two continue serving traffic uninterrupted.

***

#### Example 2 — Low-Latency Database Pair

Run a primary and replica PostgreSQL server with the lowest possible replication lag.

**Policy:** Affinity | **Region:** Central India

**Steps:**

1. Create a Placement Group named `db-cluster` with policy **Affinity** in Central India
2. Create `db-primary` and assign it to `db-cluster`
3. Create `db-replica` and assign it to `db-cluster`

Both servers run on the same physical host and share its internal network, giving you the lowest possible latency for replication traffic.

{% hint style="danger" %}
If the host fails, both servers go offline simultaneously. Use Affinity only when performance takes priority over redundancy. For mission-critical databases, consider **Soft Anti-Affinity** combined with application-level replication instead.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.neevcloud.com/neevcloud-products/placement-groups/managing-placement-groups.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
