-
1. Re: Sticky sessions when using wildfly as load balancer
rhusar Mar 21, 2016 7:58 AM (in response to hfluz)Sounds like you are hitting undertow bug [UNDERTOW-635] mod_cluster incorrectly parses out route: strips everything after '.' in the route - JBoss Issue Tracker that causes sticky sessions to be broken, can you check that?
-
2. Re: Sticky sessions when using wildfly as load balancer
hfluz Mar 21, 2016 9:35 AM (in response to rhusar)To be honest, I'm not sure how to reproduce the issue again.
I tried another time, I started servers 2 and 3 in domain mode, and this time I got the opposite problem.
The load balancer does never balance to the server 2, it always forward requests to server 3. It seems it consider the order in which they are declared in the handler:
<reverse-proxy name="my-handler">
<host name="host2" outbound-socket-binding="srv217" scheme="ajp" instance-id="myroute" path="/"/>
<host name="host1" outbound-socket-binding="srv216" scheme="ajp" instance-id="myroute" path="/"/>
</reverse-proxy>
Then I removed host2 from the handler, and I noticed host1 was not being accessed at all from the balancer.
This remote proxy feature is seeming a little unpredictable for me, if I manage to reproduce the original issue again, I'll answer this thread.
-
3. Re: Sticky sessions when using wildfly as load balancer
rhusar Apr 4, 2016 10:52 AM (in response to hfluz)Ok, sorry, I thought you were talking about modcluster, now I see you are talking about static configuration.