Add availability-zone field support to CLUSTER SHARDS / CLUSTER SLOTS#3156
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #3156 +/- ##
============================================
- Coverage 74.91% 0 -74.92%
============================================
Files 129 0 -129
Lines 71209 0 -71209
============================================
- Hits 53344 0 -53344
+ Misses 17865 0 -17865 🚀 New features to boost your workflow:
|
Signed-off-by: Su Ko <rhtn1128@gmail.com>
zuiderkwast
left a comment
There was a problem hiding this comment.
Thanks! I haven't looked closely at the tests and implementation of the gossip, but only the API changes so far.
I think we can't include it in NODES and I think we should to it slightly differently for SLOTS, to minimize the risk of breaking clusters or other tools. See comments below.
Signed-off-by: Su Ko <rhtn1128@gmail.com>
|
@valkey-io/core-team Vote (👍/👎) for adding AZ in CLUSTER SLOTS and SHARDS. With this, client's can find zone-local replicas directly in the topology map. |
enjoy-binbin
left a comment
There was a problem hiding this comment.
LGTM. It's strange that we didn't add it at the first time, it is same ask from Snap, one said it is enough and one is ask for this.
It is good to know someone is building smart proxy (or clients) around it.
Signed-off-by: Su Ko <rhtn1128@gmail.com>
Signed-off-by: Su Ko <rhtn1128@gmail.com>
|
The test should check that the az of each node gets persisted in nodes.conf and is restored from the file after a restart. We have some tests that for the other aux fields. Check for restart_server in tests/unit/cluster/announce-client-ip.tcl and hostnames.tcl. |
Signed-off-by: Su Ko <rhtn1128@gmail.com>
Signed-off-by: Su Ko <rhtn1128@gmail.com>
|
I guess I'm OK with this, but I do want to vent that we put this information in |
|
Thank you @bandalgomsu! Would you like to create a documentation PR for these new fields? |
…t commands `availability_zone` was added to the HELLO command in valkey-io#1487, and it was missing the reply schema and the test was wrongly marked with `logreqres:skip`. `availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS commands in valkey-io#3156, and it was missing the reply schema. Signed-off-by: Binbin <binloveplay1314@qq.com>
|
sure ! i'll open PR 😄 |
Add documentation for availability-zone field in CLUSTER SHARDS and CLUSTER SLOTS. Introduced in valkey-io/valkey#3156. --------- Signed-off-by: Su Ko <rhtn1128@gmail.com> Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
…3352) `availability_zone` was added to the HELLO command in #1487, and it was missing the reply schema and the test was wrongly marked with `logreqres:skip`. `availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS commands in #3156, and it was missing the reply schema. --------- Signed-off-by: Binbin <binloveplay1314@qq.com>
- Fix release date to Mon Mar 18 2026 - Fix typos: duplicate 'load', 'keyes' -> 'keys', duplicate 'INFO' - Remove reverted contributor (arshidkv12, valkey-io#3137) - Add 7 new release-notes entries from upstream/unstable merge: CLUSTERSCAN (valkey-io#2934), MSETEX (valkey-io#3121), availability-zone (valkey-io#3156), stream range optimization (valkey-io#3002), RDB as AOF preamble (valkey-io#1901), unsigned 64-bit module config (valkey-io#1546), fast_float -> ffc (valkey-io#3329) Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
…3352) `availability_zone` was added to the HELLO command in #1487, and it was missing the reply schema and the test was wrongly marked with `logreqres:skip`. `availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS commands in #3156, and it was missing the reply schema. --------- Signed-off-by: Binbin <binloveplay1314@qq.com>
Implemented a way to propagate az through gossip and obtain az information
through the CLUSTER SHARDS and CLUSTER SLOTS commands. It will only be
displayed if the node is configured with it.
Examples:
Closes #3110