From c9d568d2af409574e7932e07d1c5c0763d364220 Mon Sep 17 00:00:00 2001 From: Roshan Khatri <117414976+roshkhatri@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:59:22 -0700 Subject: [PATCH] Update cluster-slots to explain the deterministic ordering (#159) Update cluster-slots docs ref: https://github.com/valkey-io/valkey/pull/265 --------- Signed-off-by: Roshan Khatri Signed-off-by: Madelyn Olson Co-authored-by: Madelyn Olson --- commands/cluster-slots.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/cluster-slots.md b/commands/cluster-slots.md index a09dde62..2babfe2d 100644 --- a/commands/cluster-slots.md +++ b/commands/cluster-slots.md @@ -34,8 +34,10 @@ Each nested result is: - ...continues until all replicas for this master are returned. Each result includes all active replicas of the master instance -for the listed slot range. Failed replicas are not returned. +for the listed slot range. Failed replicas are not returned. +The command response is deterministic across all nodes in a cluster, which means that if two nodes return the same response they have the same view of the cluster. +Primaries are ordered by the slots they serve and then replicas are ordered lexicographically by the node-id they were assigned by the cluster. The third nested reply is guaranteed to be the networking information of the master instance for the slot range. All networking information after the third nested reply are replicas of the master.