backend default {
.host = "127.0.0.1";
.port = "8080";
.probe = {
.timeout = 100ms;
.interval = 1s;
.window = 5;
.threshold = 4;
# .url = "/test.html";
.request =
"GET /test.html HTTP/1.1"
"Host: sys-notes.com"
"Connection: close"
"User-Agent: varnish-probe"
"Accept: */*";
}
}
You can specify either .request or .url but not both. .window is the number of probe results to consider
.threshold - minimal number of good results (out of last .window results) to consider the backend healthy
User-Agent header as many webservers configuration filter empty useragent to defend from bots.
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.