3 ms·
> And the way this system detected a process failure was to search the process list for a matching process. If we run the command super-ha-proxy..., and then it
by justinsaccount 4y ago
> And the way this system detected a process failure was to search the process list for a matching process. If we run the command super-ha-proxy..., and then it's in the process list, the process is working. If it's not in the process list, it must have crashed, exited, etc. and we need to launch a new instance.
> The supervisor script just starts detecting the old process, and has no idea that the additional instance has been launched
The number of times I've seen outages and weird flaky problems from some shitty script trying (and failing) to parse ps output...
daemontools, runit, s6, systemd, etc all solve this problem properly.