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

CLUSTER MYID

Returns the ID of a node.

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

Returns the node's id.

The CLUSTER MYID command returns the unique, auto-generated identifier that is associated with the connected cluster node.

Replies

RESP2

Bulk string reply: the node ID.

RESP3

Bulk string reply: the node ID.