I have HAProy load balancing two Tomcats and using sticky sessions. When server A goes down subsequent requests from the same session are served by B. But, if server A comes up again, additional requests from the same session are routed to A. What I want to do is rewrite the cookie so that after A goes down all requests from the same session are routed to B, even if A comes up again.
httpd with mod_jk has this functionality using JvmRouteBinderValve
. Is something similar available for HAProxy?