You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change Redis cluster discovery to use CLUSTER_SHARDS API #36975
Title: Change Redis cluster discovery to use CLUSTER_SHARDS API
Description:
Currently Envoy uses CLUSTER_SLOTS to fetch cluster topology from Redis. CLUSTER_SLOTS is deprecated in Redis 7.0. It is slower and less efficient than the new API, CLUSTER_SHARDS. We observed CLUSTER_SHARDS payload size to be 10x smaller than the CLUSTER_SLOTS payload for big redis cluster with 12k shards.
Redis doc also recommends using CLUSTER_SHARDS over CLUSTER_SLOTS
[optional Relevant Links:]
Any extra documentation required to understand the issue.
Activity
KBaichoo commentedon Nov 5, 2024
cc @mattklein123 @weisisea @msukalski
dceravigupta commentedon Nov 9, 2024
12k shards seems to be a very rare case. Do you happen to know the size difference let say for a 10 shards cache?
weisisea commentedon Nov 12, 2024
This should involve sending
CLUSTER SHARDScommands for topology discovery and parsing the responses similar to howCLUSTER SLOTSresponses are parsed.@KBaichoo could you please help or guide on how to add the "help wanted" label? Thanks!
redis filter: support `CLUSTER SHARDS` (#46480)
redis filter: support `CLUSTER SHARDS` (envoyproxy#46480)
redis filter: support `CLUSTER SHARDS` (envoyproxy#46480)