Unitech / Unitech/pm2

Difference between cluster mode and fork mode when instance : 1

Open
#5,719 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?

Hi. I'm just curious about the difference between exec_mode : cluster_mode and fork_mode, when instance : 1
When I ran pm2 reload all, fork_mode said that the process did not exist on the port where the server was running, but when I ran it with cluster_mode, the process existed.
Can someone explain it to me?

How could we reproduce this issue?

Supporting information

$ pm2 report

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

No file, test, or reproducible setup is provided. Start by reviewing PM2's documentation and the output of pm2 report for cluster_mode, fork_mode, instance: 1, and pm2 reload all; the work is done when the behavioral difference and the reported reload message are clearly explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, devops
Issue type
Documentation
Difficulty
2/5
Estimated time
Half a day
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.