Current cluster layout

Changed on

The layout this node has adopted: version, partitions, the widths it spreads for, each member's role and share of slots, and how many slots a single zone or rack holds per width. Returns 501 when cluster mode is off and 404 before any layout has been applied.

get/api/v1/cluster/layout

Request

  • Base URL: http://localhost:8090
  • URL: http://localhost:8090/api/v1/cluster/layout
  • Auth: none declared

Response

Layout summary.

versioninteger required
partitionsinteger required
widthsinteger[] required
retained_versionsinteger[]

Older layout versions still in transition, oldest first: writes go to their replicas too and reads come from the oldest, until every node has synced the current version. Empty when nothing is moving.

Example response

{
  "members": [
    {
      "id": "node-1",
      "zone": "dc1",
      "rack": "r1"
    }
  ]
}

Changes