[erlang-questions] Supervisor with better restart strategies?

Moritz Ulrich <>
Thu Aug 19 00:12:53 CEST 2010


Seconded.

I was searching for a restart strategy like this too.

On Wed, Aug 18, 2010 at 11:40 PM, Anthony Molinaro
<> wrote:
> Hi,
>
>  I've got a system which connects to another system.  I'd like a pool
> of connections to that other system.  I have something which works using
> a supervisor and pg2, however, the only restart strategy available in
> the supervisor doesn't play well with the back end service going down.
> I'd like some sort of supervisor which allows you to specify the number
> of attempted restarts with some backoff between tries (in other words
> instead of specifying {one_for_one, 10, 10} (which basically happens
> instantaneously when the backend is offline) I'd prefer something like
> {one_for_one, 10, 10, 100} (which would mean restart 10 times with 10
> second sleep up to 100 seconds total, or something like that).
> Is there something like this already out there somewhere?
>
> Thanks,
>
> -Anthony
>
> --
> ------------------------------------------------------------------------
> Anthony Molinaro                           <>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>



-- 
Moritz Ulrich
Programmer, Student, Almost normal Guy

http://www.google.com/profiles/ulrich.moritz
BB5F086F-C798-41D5-B742-494C1E9677E8


More information about the erlang-questions mailing list