I have done every thing with wildfly 9 document, and failed in the last step http://IP/cluster-mode/put.jsp.
I solve the question with follow steps:(OS is Cent 6.5)
- I use mod_cluster with 1.2.6 version.
- Add "EnableMCPMReceive ON" in httpd.conf:
<VirtualHost IP:10001>
tag.
- Modify Slave domain.xml, search the "CHANGE ME !!" in
<hornetq-server>
tag, and change it to "@password@".
Modify Master and Slave domain.xml
From
<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
<mod-cluster-config advertise-socket="modcluster" connector="ajp">
<dynamic-load-provider>
<load-metric type="???"/>(I forgot original setting)
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
TO
`<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
<mod-cluster-config advertise-socket="modcluster" connector="ajp" proxy-list="IP:10001" balancer="other_server_group">
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>`
PS: the balancer value must mapping httpd.conf:"ManagerBalancerName" setting and can't use "-".
- Stop iptables whit command : sudo service iptables stop
- Stop SELinux with command : sudo setenforce 0
- restart httpd, JBoass master ,slave.
All you done will see http://IP/cluster-mode/put.jsp have time to show.
Hope this can help you.