StackExchange / StackExchange/StackExchange.Redis

Question: How to distribute read load both in slave and master

Open
#1,370 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello guys,
We are using aws redis cluster.

For reading purpose, we set PreferSlave and now all the read loads are going to slave (replica) and CPU is high where master (primary) node CPU is very low.

It would be nice if anyone can give some suggestion how to distribute the read load both in slave and master

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

The issue provides no source file, test, or entry point to investigate. Start by reviewing how PreferSlave is handled for AWS Redis clusters and determine the intended read distribution between replica and primary nodes; done would require a documented or implemented approach that addresses the requested balancing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.