-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restarting cluster_mode server loses connection #717
Comments
More details: I'm on node v0.10.31. |
Could you try using fork mode? Or with node v0.11.13, thanks. |
i think there's a compatibility problem beetwen pm2 and node v0.10.x in cluster mode, you must install node v0.11.x or use pm2 in fork-mode |
My app is incompatible with 11.x (not sure why yet), and I have to port it. Are there workarounds for 10.x? On Wed, Oct 1, 2014 at 7:04 AM, Fernando Neto [email protected]
|
|
Am I correct in assuming that fork_mode does not allow me to have multiple On Wed, Oct 1, 2014 at 9:23 AM, Antoine Bluchet [email protected]
|
@davidbau that's correct.
|
Indeed but cluster is an experimental 0.10.3x feature: http://nodejs.org/api/cluster.html. |
Dont use cluster_mode with Node 0.10 |
Converting a pretty vanilla node.js service ("pencild") to use cluster_mode on pm2. Works fine when initially starting, but after doing a "pm2 restart pencild", it restarts the processes, but they no longer respond to the port.
Repro information: Runing on debian wheezy. Code on pm2 branch here: https://github.com/PencilCode/pencilcode-site/tree/pm2.
Config:
https://github.com/PencilCode/pencilcode-site/blob/pm2/processes.json
Here is what happens when using it:
First run, this works great:
At this point, the server is listening on 8818 and working great. (Note that this server is sensitive to the Host: header, so we test it by using it as a proxy, so we can form requests with a "real" domain name.)
But then when restarting:
At this point, connections to port 8818 hang. The server is unresponsive.
User error or bug?
The text was updated successfully, but these errors were encountered: