Skip to content

Change Redis cluster discovery to use CLUSTER_SHARDS API #36975

Open

Description

@milton0825

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

  1. added
    enhancement
    triage
    on Nov 4, 2024
  2. added and removed
    triage
    on Nov 5, 2024
  3. KBaichoo commented on Nov 5, 2024

    @KBaichoo
    Contributor
  4. dceravigupta commented on Nov 9, 2024

    @dceravigupta
    Contributor

    12k shards seems to be a very rare case. Do you happen to know the size difference let say for a 10 shards cache?

  5. weisisea commented on Nov 12, 2024

    @weisisea
    Contributor

    This should involve sending CLUSTER SHARDS commands for topology discovery and parsing the responses similar to how CLUSTER SLOTS responses are parsed.

    @KBaichoo could you please help or guide on how to add the "help wanted" label? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/redisenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions