We are currently testing the transition from Wildfly 8.2.0 to Wildfly 9.0.0.CR1 (or CR2 created from a snapshot). The system is a cluster using mod_cluster and runs on VPS, which in fact prevents its use of multicast.
In 8.2.0, we used the following modcluster configuration, which works well:
<mod-cluster-config proxy-list="1.2.3.4:10001,1.2.3.5:10001" advertise="false" connector="ajp"> <dynamic-load-provider> <load-metric type="cpu"/> </dynamic-load-provider> </mod-cluster-config>
Unfortunately, in 9.0.0 the proxy list is out of date, and the serverβs start will fail. There is a terrible lack of documentation, however, after several attempts, I found that the proxy list has been replaced by proxies, which are a list of outbound socket bindings. Therefore, the configuration is as follows:
<mod-cluster-config proxies="mc-prox1 mc-prox2" advertise="false" connector="ajp"> <dynamic-load-provider> <load-metric type="cpu"/> </dynamic-load-provider> </mod-cluster-config>
And in the appropriate socket-binding-group (full-ha in my case), you should add the following:
<outbound-socket-binding name="mc-prox1"> <remote-destination host="1.2.3.4" port="10001"/> </outbound-socket-binding> <outbound-socket-binding name="mc-prox2"> <remote-destination host="1.2.3.5" port="10001"/> </outbound-socket-binding>
So far so good. After that, the httpd cluster begins to register nodes. However, I get errors from load balancing. When I look in / mod _cluster-manager, I see a couple of lines of Node REMOVED , as well as a lot of errors:
ERROR [org.jboss.modcluster] (UndertowEventHandlerAdapter - 1) MODCLUSTER000042: Error MEM sending STATUS command to node1/1.2.3.4:10001, configuration will be reset: MEM: Can't read node
There are equivalent warnings in the mod_cluster log:
manager_handler STATUS error: MEM: Can't read node
As far as I understand, the problem is that although wildfly / modcluster can connect to httpd / mod_cluster, this does not work differently. Unfortunately, even after much effort, I was stuck.
Can someone help with installing mod_cluster for Wildfly 9.0.0 without ads? Thank you very much.