Greenlock and PM2 cluster mode don't work together #31

Closed
opened 2020-02-20 05:05:17 +00:00 by Ghost · 1 comment

Since the new update I have to use fork mode to run my app. When I use cluster mode it keeps crashing/resetting without giving me an error. Does anyone else have this problem?

Since the new update I have to use fork mode to run my app. When I use cluster mode it keeps crashing/resetting without giving me an error. Does anyone else have this problem?
Owner

PM2 only implements partial cluster support.

See #26

I'd recommend just using systemd (linux) or serviceman (cross-platform) or Docker (cloud deploys).

If you are going to use PM2, you use Greenlock Express with it the same way that you would use it with Ruby, Python, etc.

It's default optimizations for node apps are already done within Greenlock Express, and since PM2 only has partial cluster support, there's not a way to tell PM2 to pass control to Greenlock Express, nor to have PM2 accept control from Greenlock Express.

PM2 only implements partial cluster support. See https://git.rootprojects.org/root/greenlock-express.js/issues/26 I'd recommend just using `systemd` (linux) or [`serviceman`](https://git.coolaj86.com/coolaj86/go-serviceman) (cross-platform) or `Docker` (cloud deploys). If you are going to use PM2, you use Greenlock Express with it the same way that you would use it with Ruby, Python, etc. It's default optimizations for node apps are already done within Greenlock Express, and since PM2 only has partial cluster support, there's not a way to tell PM2 to pass control to Greenlock Express, nor to have PM2 accept control from Greenlock Express.
Ghost closed this issue 2020-02-22 06:55:13 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-express.js#31
No description provided.