delayed child restart with incremental back-off

Loïc Hoguin essen@REDACTED
Mon May 3 16:50:53 CEST 2021

On 03/05/2021 12:18, Maria Scott wrote:
>> but something like this would be good to
>> have. Then we could get rid of supervisor2 in RabbitMQ (
>> for the delay part, non-backoff in our case ).
> I have only read the comment (4) explaining the delay behavior in supervisor2, and I guess it does things a bit different from what the OP seems to ask for. Specifically, it says that when a child exceeds the restart limit, another restart attempt will be delayed instead of the supervisor shutting down. What the OP asks for, if I understand correctly, is delays between restart attempts in general (right?)

I don't think the details of the implementation matter too much. A 
backoff would work just as well, if not better, than what supervisor2 does.

Loïc Hoguin

More information about the erlang-questions mailing list