|
Re: New supervisor restart strategy: msg#00331lang.erlang.general
Vance, Thinking more about this, there is still one problem. All the dynamic children in this second level supervisor will still be affected by one of them misbehaving. Imagine a scenario where each child process is handling one TCP connection. If one of them is misbehaving, we dont want the rest of them to be affected. How would you achieve this using existing supervisor functionality. cheers Chandru > From: Vance Shipley <vances@xxxxxxxxxxx> > Organization: Motivity Telecom Inc. > Date: Thu, 29 Jan 2004 14:37:17 -0500 > To: Chandrashekhar Mullaparthi <chandrashekhar.mullaparthi@xxxxxxxxxxxxxx> > Cc: erlang-questions@xxxxxxxxxx > Subject: Re: New supervisor restart strategy > > 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 > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: file: module and character special files: 00331, Richard A. O'Keefe |
|---|---|
| Next by Date: | Supervisors with no children?: 00331, Vance Shipley |
| Previous by Thread: | Re: New supervisor restart strategyi: 00331, Vance Shipley |
| Next by Thread: | Re: New supervisor restart strategy: 00331, Vance Shipley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |