Skip to content

KR.ADMIN DESCRIBE-CLUSTER

Returns the full cluster topology including cluster name, metadata version, and per-shard details.

KR.ADMIN DESCRIBE-CLUSTER

None.

RESP3 nested map with the following top-level keys:

KeyTypeDescription
metadata_versionstringCluster metadata version (e.g. "1.0.0")
cluster_namestringName of the cluster (from configuration)
bucketmapPer-shard details for all bucket shards, keyed by shard ID (integer)
stashmapPer-shard details for all stash shards, keyed by shard ID (integer). Present only when the experimental stash subsystem is enabled (stash.enabled = true). See Stash in the configuration reference.

Each shard entry contains:

FieldTypeDescription
primarystringMember ID of the primary route, or empty string if unassigned
standbysarray of stringsMember IDs of standby routes
statusstringREADWRITE, READONLY, or INOPERABLE
linked_volumesarray of stringsVolume names in the format <kind>-shard-<id> (e.g. bucket-shard-0)

Returns the cluster name, metadata version, and per-shard details for every bucket shard: primary route, standbys, status, and linked volumes. Each shard entry uses the same structure as DESCRIBE-SHARD. When the experimental stash subsystem is enabled, a stash map with the same structure is also returned.

Requires cluster initialization.

ErrorCondition
ERR cluster has not been initialized yetThe cluster must be initialized first.

Freshly initialized cluster (no routes assigned):

127.0.0.1:3320> KR.ADMIN DESCRIBE-CLUSTER
1# "metadata_version" => "1.0.0"
2# "cluster_name" => "my-cluster"
3# "bucket" =>
1# (integer) 0 =>
1# "primary" => ""
2# "standbys" => (empty array)
3# "status" => "INOPERABLE"
4# "linked_volumes" =>
1) "bucket-shard-0"

Cluster with routes assigned:

127.0.0.1:3320> KR.ADMIN DESCRIBE-CLUSTER
1# "metadata_version" => "1.0.0"
2# "cluster_name" => "my-cluster"
3# "bucket" =>
1# (integer) 0 =>
1# "primary" => "006cdc459c59e600c76494e8388857fc3cba2fa8"
2# "standbys" =>
1) "a3f18b2e74d9c5601f82e4a7b390d612c8f7e149"
3# "status" => "READWRITE"
4# "linked_volumes" =>
1) "bucket-shard-0"