# Rebalance

Rebalance operation is used to recompute assignment of brokers or servers in the cluster. This is not a single command, but more of a series of steps that need to be taken.

In case of servers, rebalance operation is used to balance the distribution of the segments amongst the servers being used by a Pinot table. This is typically done after capacity changes, or config changes such as replication or segment assignment strategies.

In case of brokers, rebalance operation is used to recalculate the broker assignment to the tables. This is typically done after capacity changes (scale up/down brokers).

In few cases such as when a server is tagged or untagged to a tenant i.e. server is added or removed from a tenant we need to rebalance all the tables that belong to that tenant.

{% content-ref url="/pages/-MHHv71Z7Kgw07IuNgpW" %}
[Rebalance Servers](/release-1.3.0/for-operators/operating-pinot/rebalance/rebalance-servers.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MHHvBv2ShH0MZkNUCw-" %}
[Rebalance Brokers](/release-1.3.0/for-operators/operating-pinot/rebalance/rebalance-brokers.md)
{% endcontent-ref %}

{% content-ref url="/pages/5n1nSyfoI17TdNUxr8L6" %}
[Rebalance Tenant](/release-1.3.0/for-operators/operating-pinot/rebalance/rebalance-tenant.md)
{% endcontent-ref %}

##


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pinot.apache.org/release-1.3.0/for-operators/operating-pinot/rebalance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
