Skip to content

Is Ring possible with Cluster Client? #2566

Closed
@Ghilteras

Description

@Ghilteras

Hi there, I use go-redis to connect to our Elasticache cluster of 10 shards and we noticed that our keys are hashes to slots in a way that we end up hammering the primary of the same 2 shards while the other shards and their nodes remain largely idle. To rebalance our traffic and spread the keys better we were considering to switch to a consistent hashing approach, but it looks like the Ring implementation of go-redis does not accept a ClusterClient, but just a regular Client with the shard lists and I don't understand why is that? Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions