-
Notifications
You must be signed in to change notification settings - Fork 40
Description
send SIGUSR2 & wait, my 2 processes come back up as 2 process every time. Using siege, availability stays at 100%
Send SIGUSR2 twice rapidly, my 2 processes turn to 5 processes and I get error in console Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnected
Using siege, it shows availability drops from 100% to around 90%. Eventually number of running processes decrease back down to 2.
I would have expected it to kill a worker before spawning a replacement, instead it appears it spawns replacements before killing the worker being replaced, this means total processes sometimes exceed number of CPUs (undesired). Also 90% availability instead of 100% when issuing restarts in quick succession is an issue. A quick fix could be to toggle a flag & block restarts if theres already one pending.