I have made simple cluster in my network. It has two Wildfly 9 servers and i configure Undertow like bellow.
<subsystem xmlns="urn:jboss:domain:undertow:2.0" instance-id="node1">
<subsystem xmlns="urn:jboss:domain:undertow:2.0" instance-id="node2">
And create Undertow load balancer like bellow.
LoadBalancingProxyClient loadBalancer = new LoadBalancingProxyClient()
Undertow reverseProxy = Undertow.builder()
.setHandler(new ProxyHandler(loadBalancer, 30000, ResponseCodeHandler.HANDLE_404))
System.out.println("[Undertow] load balancer is running...");
When i do some load testing seems this work fine. Requests are distributed among two servers but their sessions are stick. But when i do the same thing in Wildfly 10.1, session are not stick. Requests are not gone to the same node. What is the cause for this and is there any different configuration need to do in Wildfly 10.1?
Can you try with a newer version of WildFly? IIRC there has been a bug where session stickiness information was not appended if you ran non-HA profiles.