---
title: Getting Rebalance Reason Codes
pubDate: 2026-10-19T14:21:08.937Z
meta:
  component:
    title: Operational Insights Enterprise
    version: "3.0"
antora:
  editUrl: https://github.com/couchbaselabs/docs-enterprise-analytics/edit/release/3.0/modules/reference/pages/rest-retrieve-cluster-rebalance-reason-codes.adoc
  xref: xref:enterprise-analytics:reference:rest-retrieve-cluster-rebalance-reason-codes.adoc[]
---

[Consult the llms.txt file for a full list of contents](/llms.txt)
[View original HTML](/operational-insights/current/reference/rest-retrieve-cluster-rebalance-reason-codes.html)

# Getting Rebalance Reason Codes

> When a service in the cluster needs to be rebalanced, you can retrieve the reason for the rebalance using the 'GET /pools/default' method. 

## [](#http-method-and-uri)HTTP method and URI

GET /pools/default

## [](#rest-cluster-rebalance-reason-description)Description

At any point that the service needs rebalancing, you can use this method to obtain a detailed description of the reasons that the rebalance is required.

The reasons are returned in the `servicesNeedRebalance` array. Each entry gives a reason code, such as `service_not_balanced` (the service isn't balanced), and lists the services to which it applies.

> [!NOTE]
> The service returns the reason code only if a rebalance is required.

## [](#curl-syntax)Curl Syntax

```none
curl -v -X GET -u [admin]:[password]
  http://[localhost]:8091/pools/default
```

## [](#response)Response

On success, the response code `200 OK` is given, and one or more reason codes are given in the returned message.

Returned JSON object (truncated)

```json5
{
  "name": "default",

  "rebalanceStatus": "none",
  "rebalanceProgressUri": "/pools/default/rebalanceProgress",
  "stopRebalanceUri": "/controller/stopRebalance?uuid=8a05ca2847bc28ac92a484c9248fb261",
  "nodeStatusesUri": "/nodeStatuses",
  "nodeServicesUri": "/pools/default/nodeServices?v=89141026",
  "tasks": {
    "uri": "/pools/default/tasks?v=86199101"
  },

  "servicesNeedRebalance": [
    {
      "code": "service_not_balanced",
      "description": "Service needs rebalance.",
      "services": [
        "kv",
        "cbas"
      ]
    }
  ],
  "serverGroupsUri": "/pools/default/serverGroups?v=20914152"
}
```

## [](#see-also)See Also

For information about rebalancing, see the following:

[REST API – Rebalance](rest-rebalance-overview.md)