My stick session
Hi
The system has multiple tomcat stype containers, they provide a JSESSIONID and we append a node id to the end
so we have a JSESSION id that looks like
JSESSIONID=83987345.nodeX where X could 1 2 3 4 5
on my nginx setup i had
server app1.env:XXXX slow_start=0s weight=1 max_fails=0 fail_timeout=10 route=node1;
server app2.env:XXX slow_start=0s weight=1 max_fails=0 fail_timeout=10 route=node2;
# Session Persistence based on JSESSION ID, if necessary
sticky route $route_cookie;
# jboss mapping for nodes
map $cookie_jsessionid $route_cookie {
~.+\.(?P<route>\w+)$ $route;
}
I want to do this in F5 i presume with F5.
But ... the persistence model in F5 break my nginx setup.
so
client A -> connect talks to node1
JSESSIONID 123456789.node1
node1 dies
client A -> get rerouted to node2
JSESSIONID 123456789.node1...
JSESSIONID 987654321.node1
note 100% sure if the jsessionid changes or not. but i'm 100% sure that the nodeX stays the same
until node1 comes back client gets routed to node2
once node1 comes back the client is routed back to node1
I presume irule.
but how do I say go to pool member if its up otherwise go to pool (use the balancing method)