Unitech / Unitech/pm2

Load balancing is not distribute the load evenly

Open
#5,796 0 comments 0 reactions 0 assignees View on GitHub

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

image
image

# 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.