Hi I am using WF 10.1.0.Final and the load balancer with mod_cluster. I noticed that the advertizement messages send out the host name and there is no way of making it send the IP address.
HTTP/1.0 200 OK
Date: Thu, 12 Jan 2017 09:28:21 +0000
Sequence: 14837
Digest: f19013c7c3d3b9ecfea01737b492b86b
Server: 36123959-ecd7-4532-8cb2-3edc94dae399
X-Manager-Address: myserver.tieto.com:28090
X-Manager-Url: /
X-Manager-Protocol: http
X-Manager-Host: myserver.tieto.com
Here is the issue. My server has two network cards. WildFly's interfaces are all bound to one of them. The hostname resolves to both IP addresses. When the slave node sends a reply to the load balancer proxy, it sends it to the host name which resolves to the wrong IP address. Looking at the code in undertow/org.wildfly.extension.undertow.filters.ModClusterService line 151 (on tag 10.1.0.Final), I can see why. It says: builder.setManagementHost(managementSocketBinding.getValue().getSocketAddress().getHostName());
Is there a way to get around this limitation?