Gracefully stopping varnish

Guillaume Quintard guillaume at varnish-software.com
Wed Oct 18 06:51:29 UTC 2017


Hi,

That's not possible. However, what you really want, I think, is not sending
new requests to Varnish. That's usually done at the loa-bbalancing level.
If your LB use probes, you can tell Varnish to stop honoring them, drain
the connections,  then kill it.

-- 
Guillaume Quintard

On Oct 18, 2017 02:28, "Hugues Alary" <hugues at betabrand.com> wrote:

> Hi there,
>
> I've been looking around and I can't find a documented way of gracefully
> shutting down varnishd, and by gracefully I mean tell varnish "stop
> accepting connections, but finish what you were doing, then shutdown".
>
> I did find something in the "first varnish design notes" (
> https://varnish-cache.org/docs/5.1/phk/firstdesign.html) which seemed to
> indicate that sending SIGKILL/SIGTERM would mean "suspend/stop" but KILL
> doesn't seem to work, and TERM, well... terminates but not gracefully.
>
> I also tried using "varnishadm stop", which also doesn't gracefully stops
> connection.
>
> Is there anyway to achieve this?
>
> Thanks!
> -Hugues
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20171018/1ebe8c15/attachment.html>


More information about the varnish-misc mailing list