I want to set up clustering and fail-over system with one apache httpd and two JBOSS EAP 6.4.
- download
mod_cluster download
http://mod-cluster.jboss.org/mod_cluster/downloads/1-1-3
jboss eap 6.4 download
http://www.jboss.org/products/eap/download/ My httpd.config is like that:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule manager_module modules/mod_manager.so LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so LoadModule advertise_module modules/mod_advertise.so # MOD_CLUSTER_ADDS # Adjust to you hostname and subnet. <IfModule manager_module> Listen 192.168.0.195:6666 ManagerBalancerName mycluster <VirtualHost 192.168.0.195:6666> <Location /> Require ip 192.168.0.195 </Location> KeepAliveTimeout 300 MaxKeepAliveRequests 0 #ServerAdvertise on http://127.0.0.1:6666 AdvertiseFrequency 5 #AdvertiseSecurityKey secret #AdvertiseGroup 224.0.1.105:23364 EnableMCPMReceive <Location /mod_cluster_manager> SetHandler mod_cluster-manager Order deny,allow Deny from all Allow from 192.168.0 </Location> </VirtualHost>
I used default standalone-ha.xml
- I ran the jboss like this:
192.168.0.10:
standalone.bat -c standalone-ha.xml -b 0.0.0.0 -Djboss.node.name='node1'
192.168.0.195:
standalone.bat -c standalone-ha.xml -b 0.0.0.0 -Djboss.node.name='node2' - In 192.168.0.10, mod_cluster manager is like that:
Question)
1. Is my httpd.conf right?
2. If I use "standalone-ha.xml", is there any configuration for mod_cluster?
3. Is there any full-configuring guide with one apache and two jboss-eap-6.4?
Thanks for any advice...