You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it'd be great if up could ensure that it never gets to a point where there are zero active workers. I've been experimenting with using up in a semi-production environment and I've been burnt by this before, but I wanted to make sure this wasn't a WONTFIX type of issue before putting any time into patching it.
The text was updated successfully, but these errors were encountered:
I'd definitely love support for dead worker respawning.
For me, a simple pair of config options would work, as per #2 discussion:
max respawn rate - don't respawn more frequently than once per XX sec
prevent auto-respawning storms from overloading the system
worker listen timeout - if a spawned worker fails to listen in XX sec, kill worker
ensure newly spawned workers are truly "alive"
Both of those are really just primitive safety measures, and could just be based on a single interval config value.
Not looking for anything sophisticated - just a simple and reliable way to occasionally restart dead processes in an otherwise-healthy system - more permanent/disastrous problems can be detected an dealt with elsewhere.
Ahh I should have read more closely, I didn't realize issue #2 was basically talking about this. I suppose I can take that to mean that it's a goal waiting for an implementation?
Is it/should it be one of the design goals of
up
to add a new worker to the pool if one dies unexpectedly?A contrived example, but a server like the following can only survive N requests, where N is the initial number of spawned workers.
I think it'd be great if
up
could ensure that it never gets to a point where there are zero active workers. I've been experimenting with usingup
in a semi-production environment and I've been burnt by this before, but I wanted to make sure this wasn't a WONTFIX type of issue before putting any time into patching it.The text was updated successfully, but these errors were encountered: