Skip to content

Add worker auto-respawning with max tries #2

Open

Description

@rauchg
  • Option to ensure that if a worker dies it tries to respawn immediately ?
  • Option to ensure number of active workers always stays at numWorkers or above ?
  • Option to ensure that there's always at least one worker alive and otherwise respawn ?
  • When respawning, if worker fails to listen within certain timeout, retry ?
  • Have a retry threshold to avoid overload ?
  • When respawning, if worker dies shortly after listening, consider it an unsuccessful respawn and try ? This means it would still be captured by the retry threshold and you can't get into an endless cycle of considering the worker spawned, then dying shortly after listening, then triggering reload, ad infinitum.

Activity

  1. malkomalko commented on Feb 15, 2012

    @malkomalko

    Hi Guillermo,

    First of all... really loving up. Right now when a worker dies there is no respawn.. is that correct? Is there any current strategy at ensuring workers stay alive? Maybe listen for a worker failure and send a kill -s SIGUSR2 to the master pid?

  2. rauchg commented on Feb 15, 2012

    @rauchg
    ContributorAuthor

    Right now I have nothing for worker reloading I believe. We can start with the simplest implementation, but it quickly can get out of control if you don't cover many of the things I mention in this ticket. eg: crazy recursive/cyclic reloads that bring the server down because of faulty code.

  3. rauchg commented on Feb 15, 2012

    @rauchg
    ContributorAuthor

    At the same time, maybe that problem needs to be solved at a different layer of abstraction.

  4. arohter commented on Apr 18, 2012

    @arohter

    See my comments in #21

  5. kevireilly commented on Jan 29, 2013

    @kevireilly

    It seems this has been integrated and documented, but has not yet been translated to the npm repository. Just a heads up.

  6. cmawhorter commented on Feb 8, 2013

    @cmawhorter

    I think merging #60 will close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions