StackExchange / StackExchange/StackExchange.Redis
Question: How to distribute read load both in slave and master
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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