StackExchange / StackExchange/StackExchange.Redis

Poor message balancing between replicas using Redis Sentinel.

Open
#2,554 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

The current distribution of messages between replicas is uneven.
The replica following the master in the list of servers is selected more often than others.
In the configuration there is a master and two replicas:

  • the first replica receives 66% of messages
  • the second replica receives 34%.

I propose the following fix issue: https://github.com/StackExchange/StackExchange.Redis/pull/2553

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing pull request 2553 and the Redis Sentinel replica-selection path described in this issue. Verify the reported 66%/34% distribution and confirm that message selection is balanced across both replicas.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.