Load balancing is not distribute the load evenly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
Load balancing not functioning as desired, only distribute most of the connection to 2 of the instances.
How could we reproduce this issue?
Try to connect to the service with number of connection as per the screenshots, services are start in cluster mode
Supporting information
# Run the following commands
command:
- "pm2"
- "start"
- "/app/Server/clientAPIServer.js"
args:
- "--no-daemon"
- "-i"
- "10"
- "--max-memory-restart"
- "4096M"
- "--node-args='--max-old-space-size=4096'"
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
Start by reproducing the reported command with /app/Server/clientAPIServer.js, 10 cluster instances, and the stated Node.js memory arguments, comparing connection counts across instances. The issue provides screenshots but no source file or test entry point; done would require identifying why connections concentrate on two instances and demonstrating even distribution with a repeatable test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100