Re: "Back off" setting for crashing services with s6+openrc?

2022-10-10 Thread Dewayne
On 30/09/2022 11:21 pm, Laurent Bercot wrote: A service that keeps crashing is an abnormal condition Yes - sometimes that's what villains like to do :)  Note that I don't think making the restart delay configurable is a good trade-off. It adds complexity, size and failure cases to the s6-sup

Re: "Back off" setting for crashing services with s6+openrc?

2022-10-10 Thread Laurent Bercot
To me this seems like a relevant improvement that would catch a problematic edge case issue. I pushed such a change to the s6 git. A new numbered release should be cut soon-ish. -- Laurent

Re: "Back off" setting for crashing services with s6+openrc?

2022-10-04 Thread Tor Rune Skoglund
Den 30.09.2022 15:21, skrev Laurent Bercot:  There is, however, one improvement I think I can safely make.  Currently, the 1-second delay is computed from when the service *starts*: if it has been running for more than one second, and crashes, it restarts immediately, even if it has only been b

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-30 Thread Laurent Bercot
I feel like this whole thread comes from mismatched expectations of how s6 should behave. s6 always waits for one second before two successive starts of a service. This ensures it never hogs the CPU by spamming a crashing service. (With an asterisk, see below.) It does not wait for one seco

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-30 Thread Oliver Schad
On Mon, 26 Sep 2022 23:00:48 + Colin Booth wrote: > On Thu, Sep 22, 2022 at 01:21:46PM -0700, John W Higgins wrote: > > run_my_crashing_app || sleep 10 > > > > Work? The run script will sit there for 10 seconds if your app > > fails. Not built in - but should accomplish the task pretty easil

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-26 Thread Colin Booth
On Thu, Sep 22, 2022 at 01:21:46PM -0700, John W Higgins wrote: > Good Day, > > On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund wrote: > ... > > > As a generic question, is there any setting with this s6+openrc config > > that would make s6 "back off" a configurable number of seconds before >

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-24 Thread Oliver Schad
On Thu, 22 Sep 2022 13:21:46 -0700 John W Higgins wrote: > Good Day, > > On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund > wrote: ... > > > As a generic question, is there any setting with this s6+openrc > > config that would make s6 "back off" a configurable number of > > seconds before doi

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-23 Thread Alyssa Ross
John W Higgins writes: > Good Day, > > On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund wrote: > ... > >> As a generic question, is there any setting with this s6+openrc config >> that would make s6 "back off" a configurable number of seconds before >> doing the restart? >> >> > Does something

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-23 Thread Tor Rune Skoglund
Hello, Den 22.09.2022 22:21, skrev John W Higgins: On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund wrote: As a generic question, is there any setting with this s6+openrc config that would make s6 "back off" a configurable number of seconds before doing the restart? Does something as simple

Re: "Back off" setting for crashing services with s6+openrc?

2022-09-22 Thread John W Higgins
Good Day, On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund wrote: ... > As a generic question, is there any setting with this s6+openrc config > that would make s6 "back off" a configurable number of seconds before > doing the restart? > > Does something as simple as changing your run script to

"Back off" setting for crashing services with s6+openrc?

2022-09-22 Thread Tor Rune Skoglund
Hello List, I am new to the list, so sorry if this question has been raised before. However, I've made an honest attempt to figure this out before posting here now. I am using s6 with openrc on Gentoo and are using a couple of custom made services which are fully stable under some conditions