client and fallback director questions.

James A. Robinson jim.robinson at
Fri Oct 4 01:01:09 CEST 2013

On Tue, Oct 1, 2013 at 7:47 PM, James A. Robinson <jim.robinson at
> wrote:

> if (req.url ~ "^/(a|b|c|d)[\.\/]") {
>  set client.identity = "group-1"
> }
> else if (req.url ~ "^/(e|f|g|h)[\.\/]") {
>  set client.identity = "group-2"
> }
> else
> set client.identity = "group-3"
> }

I forgot that I'd need to set

  set req.backend = member

within each of those, but testing out the rest of the
configuration as I outlined seems to work as I

If I simulate a failure by using .probe that will
never succeed, I see traffic for one group get
routed from its original server to a new one,
and when the .probe is reset to recover I see
the traffic move back.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list