<div dir="ltr"><div class="gmail_extra">On Tue, Oct 1, 2013 at 7:47 PM, James A. Robinson <span dir="ltr"><<a href="mailto:jim.robinson@stanford.edu" target="_blank">jim.robinson@stanford.edu</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-family:arial,sans-serif;font-size:13px">
if (req.url ~ "^/(a|b|c|d)[\.\/]") {</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<span style="white-space:pre-wrap"> </span>set client.identity = "group-1"</div><div style="font-family:arial,sans-serif;font-size:13px">}</div><div style="font-family:arial,sans-serif;font-size:13px">else if (req.url ~ "^/(e|f|g|h)[\.\/]") {</div>
<div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>set client.identity = "group-2"</div><div style="font-family:arial,sans-serif;font-size:13px">}</div><div style="font-family:arial,sans-serif;font-size:13px">
else </div><div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>set client.identity = "group-3"</div><div style="font-family:arial,sans-serif;font-size:13px">}</div>
</blockquote></div><br>I forgot that I'd need to set</div><div class="gmail_extra"><br></div><div class="gmail_extra"> set req.backend = <span style="font-family:arial,sans-serif;font-size:13px">member</span><br></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">within each of those, but testing out the rest of the</div><div class="gmail_extra">configuration as I outlined seems to work as I</div><div class="gmail_extra">
expected.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If I simulate a failure by using .probe that will</div><div class="gmail_extra">never succeed, I see traffic for one group get</div><div class="gmail_extra">
routed from its original server to a new one,</div><div class="gmail_extra">and when the .probe is reset to recover I see</div><div class="gmail_extra">the traffic move back.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Jim</div></div>