New supervisor restart strategy
Vance Shipley
vances@REDACTED
Thu Jan 29 20:37:17 CET 2004
Guys,
Why not just add another level in the tree? Dynamically add a
supervisor with a temporary restart strategy and put the worker
under it as a transient and set MAXR & MAXT appropriately.
-Vance
On Thu, Jan 29, 2004 at 06:58:42PM +0000, Chandrashekhar Mullaparthi wrote:
}
} safe_transient: child process should be restarted only if it terminates
} abnormally, but should NOT be restarted if the max number of restarts has
} been reached.
}
} This will leave all other children of the supervisor and the supervisor
} itself unaffected. This would only be applicable for the one_for_one restart
} strategy.
}
} This will be useful in the case where a lot of worker processes are added to
} the supervision tree dynamically and one of them goes into a cyclic restart.
}
} Thoughts?
}
} cheers
} Chandru/Sean
More information about the erlang-questions
mailing list