Varnish Health check

Guillaume Quintard guillaume at varnish-software.com
Thu Feb 18 15:00:23 UTC 2021


Hi,

The answer will be highly dependent on your setup, usually you want to find
a probe request that will truly test the backend. One option, if you have
control over the backend is to write a page to test the subsystem and make
sure everybody's up.

This link may prove useful:
https://info.varnish-software.com/blog/backends-load-balancing

-- 
Guillaume Quintard


On Thu, Feb 18, 2021 at 4:51 AM Hamidreza Hosseini <hrhosseini at hotmail.com>
wrote:

> Hi,
> I want to adjust health check on my varnish backends, But I dont know how
> can I know they are healthy or not
> because the nodes are up and running and even service is up but varnish
> does'nt work for all requests (just third of them are responding till I
> restart it (It happens sometimes)).
> How can I check this?
> ```
> backend server1 {
>     .host = "server1.example.com";
>     .probe = {
>         .request =
>           "HEAD / HTTP/1.1"
>           "Connection: close"
>           "User-Agent: Varnish Health Probe";
>         .timeout = 1s;
>         .interval = 5s;
>         .window = 5;
>         .threshold = 3;
>     }
> }
> ```
> _______________________________________________
> 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/20210218/57619fdb/attachment-0001.html>


More information about the varnish-misc mailing list