Is it possible in Varnish 3 to configure a backend to have multiple probes?
I have multiple varnish servers and multiple backend servers running Drupal. I've configured a basic 1 second interval healthcheck PHP file to verify the health of the application server, but I would also like to use a healthcheck for the Drupal stack, however this check would need to run less often than the basic healthcheck. e.g.: Every 5 seconds it could check the Drupal stack.
Is it possible to use 2 separate probes on a single backend for such a case?
Theoretical configuration:
probe healthcheck {
.url = "/healthcheck.php";
.interval = 1s;
.timeout = 100 ms;
.window = 5;
.threshold = 5;
}
probe drupalcheck {
.url = "/index.php";
.interval = 5s;
.timeout = 5s;
.window = 5;
.threshold = 5;
}
backend apache_1 {.host = "server01"; .port = "8080"; .probe = healthcheck; .probe = drupalcheck}
backend apache_2 {.host = "server02"; .port = "8080"; .probe = healthcheck; .probe = drupalcheck}
backend apache_3 {.host = "server03"; .port = "8080"; .probe = healthcheck; .probe = drupalcheck}