mirror of
https://github.com/therootcompany/greenlock-express.js.git
synced 2025-02-23 21:28:05 +00:00
Cluster - Worker exit #49
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If a worker exit, will greenlock-express create a new one?
Found it:
and
You should fork a new worker:
Cluster.fork()
I am using good old greenlock-cluster and want to switch to greenlock-express or greenlock (Is there cluster support?).
You should supply
{ cluster: true }
(same as number of CPU cores) or{ cluster: 4 }
(exactly 4).Workers should not exit.
If a worker exits, it's considered to be a fatal error and the whole program will exit (and your system launcher will cause it to immediately restart).