supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Is missing SysV-init support a bug?
       [not found] <20160901132130.747.qmail@6c3a1209216aab.315fe32.mid.smarden.org>
@ 2016-09-03 20:01 ` Jonathan de Boyne Pollard
  0 siblings, 0 replies; only message in thread
From: Jonathan de Boyne Pollard @ 2016-09-03 20:01 UTC (permalink / raw)
  To: supervision; +Cc: debian-devel

Gerrit Pape:

> To me too this readiness IPC ideas and implementations look 
> over-engineered.
>
> A good convention for service programs would be to functionally test 
> for services it needs very early on startup, and fail if dependencies 
> are not available. The service supervisor (any modern init scheme 
> seems to now support this) relaunches eventually, until all 
> dependencies are fulfilled.
>
The problem with the thundering herd approach is twofold. Firstly, it 
really does matter in practice when the machine has tens if not hundreds 
of client processes all continually restarting whilst they wait for 
(say) the RabbitMQ server to come up.  Secondly, these explanations 
never seem to take system shutdown into account.  In the ordered 
services world, shutdown order is the reverse of startup order, and 
things generally work. In the thundering herd world, often the theory is 
just to send terminate and kill signals willy-nilly to every service on 
the system.  This almost never works cleanly in any but the most trivial 
systems.  (People will no doubt be thinking the classic example of NFS 
mounts, here.  But there are all sorts of possibilities, from /var/ 
being unmounted before logging services are turned off to the proxy DNS 
server being turned off whilst other services are still doing DNS lookups.)

We discussed this on the Supervision mailing list last year: 
http://www.mail-archive.com/supervision%40list.skarnet.org/msg00673.html



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-03 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20160901132130.747.qmail@6c3a1209216aab.315fe32.mid.smarden.org>
2016-09-03 20:01 ` Is missing SysV-init support a bug? Jonathan de Boyne Pollard

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).