client and fallback director questions.

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


On Tue, Oct 1, 2013 at 7:47 PM, James A. Robinson <jim.robinson at stanford.edu
> 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
expected.

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.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20131003/b1d35e00/attachment.html>


More information about the varnish-misc mailing list