Varnishd and Supervisord

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Apr 20 13:11:56 CEST 2007


In message <20070420105517.GF15752 at crusaders.no>, Trond Michelsen writes:
>On Thu, Apr 19, 2007 at 06:02:15PM +0000, Poul-Henning Kamp wrote:

>> This is sort of pointless, because Varnish already has its own
>> supervisor facility: The management process will restart the worker
>> process if it dies.
>
>How do you set up Varnish to automatically restart if it dies? 

It should be the default, but the parameter auto_restart can
be used to disable it.

>We recently had a crash where the varnish process didn't restart by
>itself, so I'm very interested if there's sonething we can do to make
>sure it keeps running.
>
>Anyway - I found the final entries in the varnishncsa-log to be kind
>of interesting...

When you have a crash, run "varnishlog -d" to get a snapshot of
the "real" log, that would be much more helpful for debugging.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list