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 <[email protected]> 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 > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
