On Jul 15, 2011, at 2:02 AM, Tollef Fog Heen wrote:

> ]] Chris Davies 
> 
> | And in VCL, how do I tell the health of the backend within a director?
> 
> something like:
> 
> backend foo {
>        …
> }
> 
> director rr round-robin {
>  {  .backend = foo; }
> …
> }
> 
> sub vcl_recv {
>  set req.backend = foo;
>  if (!req.backend.healthy) {
>    # Handle this
>  }
>  set req.backend = rr;
> }

that is sort of what I started to figure out - Just seemed odd to have to set 
the backend, test, set the next backend.

Thank you for the pointer in the right direction.



_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to