[erlang-questions] Restarting supervision tree

Ingela Andin ingela.andin@REDACTED
Thu Jul 4 22:34:17 CEST 2013


Hi!

Stopping and starting your application again would accomplish a "restart"
of the whole supervison tree.
I agree that there are things missing from the supervisors that hopefully
we will be able to adress in the future.

Regards Ingela Erlang OTP/team - Ericsson AB


2013/7/1 Martin Dimitrov <mrtndimitrov@REDACTED>

> Hello,
>
> In our app, I would like to reset (restart) a whole supervision tree. If
> I return {stop, normal, []} from a permanent worker with supervisor's
> restart strategy set to one_for_all, the supervisor will terminate and
> restart the whole tree, right? But this will count towards the maximum
> restart frequency and I have to avoid this. If I call
> supervisor:terminate_child/2 and then supervisor:restart_child/2 on the
> permanent worker, will this affect the maximum restart frequency?
>
> Thank you.
>
> Martin
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130704/71ba580d/attachment.htm>


More information about the erlang-questions mailing list