Hi All,<div><br>I want to know how to setup a client director and make use of client.identity to force the request always going to the same backend instance (ie. sticky).<br><br></div><div>Here's my setup:<br><br></div>
<div>backend a {<br> .host = "192.168.1.4";<br> .port = "8880";<br>}<br>backend b {<br> .host = "192.168.1.5";<br> .port = "8880";<br>}<br>director tomcat client {<br> {<br>
.backend = a;<br>
.weight = 1;<br> }<br> {<br> .backend = b;<br> .weight = 1;<br> }<br>}<br>sub vcl_recv {<br> ## set sticky bit for backend director ##<br> set client.identity = regsub(req.http.Cookie, ".*JSESSIONID=.*\.(\w).*", "\1");<br>
set req.backend = tomcat;<br>}<br><br></div><div>Unfortunately the above setup didn't work as expected.<br><br></div><div>Could some one please give me some advice?<br><br></div><div>Thanks in advance!<br>Michael</div>