supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Charles Duffy <cduffy@spamcop.net>
Subject: Re: Respawn limit for runsv?
Date: Fri, 11 Feb 2005 23:21:20 -0600	[thread overview]
Message-ID: <pan.2005.02.12.05.21.19.402644@spamcop.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0502112204500.16754-100000@e-smith.charlieb.ott.istop.com>

On Fri, 11 Feb 2005 22:13:43 -0500, Charlie Brady wrote:

> There is no general class of problem unless you can provide a single
> instance.

Let me jump in here.

I have a web server. It's running a big, complex servlet container (which
provides only one of the many services available) that eats a bunch of CPU
time and writes a bunch of logs trying to start up.

Should the servlet container be misconfigured in such a way as to die
immediately after startup (and some such misconfigurations could occur
based on issues on other systems ie. the DNS server), the automated
respawning would bring everything else on the web server to its knees.

> You say that respawning software is a reasonably common problem. Whenever
> I've seen it, it was a configuration problem. Or rather, there was a
> configuration problem, and the respawning was a symptom. I didn't see the
> respawning as a problem. The automated respawning is a feature.

Certainly, when it occurs, it's a symptom of a larger problem. That's not
to say that it wouldn't be useful to have more configurable respawning --
ranging from the simple "no more than N times in M minutes" to backoff
algorithms akin to those used for TCP.

Putting these more complex algorithms into runit, I agree, isn't
necessarily appropriate -- but that's why he mentioned having a second
process responsible for implementing them.



  reply	other threads:[~2005-02-12  5:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-11 12:56 Lars Kellogg-Stedman
2005-02-12  0:14 ` Charlie Brady
2005-02-12  1:14   ` Lars Kellogg-Stedman
2005-02-12  3:13     ` Charlie Brady
2005-02-12  5:21       ` Charles Duffy [this message]
2005-02-12 13:04         ` Lars Kellogg-Stedman
2005-02-13 18:42           ` Charlie Brady
2005-02-13 21:21             ` Thomas Schwinge
2005-02-13 13:48         ` Gerrit Pape
2005-02-13 18:19           ` Lars Kellogg-Stedman
2005-02-14 16:23             ` Clemens Fischer
2005-02-13  3:59     ` Lars Kellogg-Stedman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2005.02.12.05.21.19.402644@spamcop.net \
    --to=cduffy@spamcop.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).