Hi,
We are a small organization using Wildfly. My team is trying to set up wildfly 32.0.1 as load balancer for other Wildfly 32 worker nodes. We have following configuration for this load balancing:
Load Balancer Wildfly(placed on server 1):
In Undertow:
<filter-ref name="load-balancer"/>
<mod-cluster name="load-balancer" advertise-frequency="0" management-socket-binding="mcmp-management" enable-http2="true" max-retries="3">
<single-affinity/>
</mod-cluster>
</filters>
Sockets:
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:500}">
<socket-binding name="mcmp-management" interface="public" port="${jboss.mcmp.port:8090}"/>
</socket-binding-group>
In worker node Wildfly(placed on server 2):
<subsystem xmlns="urn:jboss:domain:modcluster:6.0">
<proxy name="default" proxies="proxy1" listener="https" ssl-context="applicationSSC" >
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</proxy>
</subsystem>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:500}">
<outbound-socket-binding name="proxy1">
<remote-destination host="<load balancer server1 ip address>" port="8590"/>
</outbound-socket-binding>
</socket-binding-group>
We are getting following error in server.log of worker node wildfly: ERROR [org.jboss.modcluster] (UndertowEventHandlerAdapterService - 1) MODCLUSTER000043: Failed to send INFO command to /< load balancer server1 ip address >:8590: Read timed out
if we try with listener=ajp for modcluster, we get another error:
Failed to send INFO command to /< load balancer server1 ip address>:8590: connect timed out
There is no proper load balancing documentation available but we refer to these:
Using Wildfly as a Load Balancer - Latest WildFly Documentation (jboss.org)High Availability Guide (wildfly.org)Is the load balancer - worker node configuration correct? Any idea about this error?
Kindly help in these regards.
Thanks,
Harshal