pump.io icon indicating copy to clipboard operation
pump.io copied to clipboard

[WIP] Allow disabling clustering for development environments

Open strugee opened this issue 7 years ago • 1 comments

In particular, debugging with node debug is difficult when clustering is enabled.

This is a WIP, not sure when I'll have time to finish it. Call this PR a note to self to finish up this branch.

strugee avatar Nov 03 '16 23:11 strugee

In Node.js >= 6 with node --inspect and children == 1 works fine, but with --inspect-brk or node inspect bin/pump the process die and the logs shows

{"name":"pump.io","hostname":"parabola","pid":22381,"component":"cluster","level":50,"msg":"worker 22458 died (12). restarting...","time":"2018-03-21T17:28:01.641Z","v":0}
Debugger listening on ws://127.0.0.1:9241/50dba07c-2492-47c0-9026-f3a98d7a0b94

ghost avatar Mar 21 '18 19:03 ghost