What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

CLUSTER MYSHARDID

Returns the shard ID of a node.

Usage
CLUSTER MYSHARDID
Complexity
O(1)
Since
7.2.0
ACL Categories
@slow
Command flags
LOADING, STALE

Returns the node's shard id.

The CLUSTER MYSHARDID command returns the unique, auto-generated identifier that is associated with the shard to which the connected cluster node belongs.

Replies

RESP2

Bulk string reply: the node's shard ID.

RESP3

Bulk string reply: the node's shard ID.