Skip to content

Commit

Permalink
Update cluster-slots to explain the deterministic ordering (valkey-io…
Browse files Browse the repository at this point in the history
…#159)

Update cluster-slots docs
ref: valkey-io/valkey#265

---------

Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: asafpamzn <97948347+asafpamzn@users.noreply.github.com>
  • Loading branch information
2 people authored and asafpamzn committed Sep 26, 2024
1 parent 6495792 commit 65e3a3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/cluster-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 65e3a3a

Please sign in to comment.