我想用一个 apache httpd 和两个 JBOSS EAP 6.4 设置集群和故障转移系统。
- 下载
mod_cluster 下载
http://mod-cluster.jboss.org/mod_cluster/downloads/1-1-3
jboss eap 6.4 下载
http://www.jboss.org/products/eap/download/ 我的 httpd.config 是这样的:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module 模块/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>
我使用了默认的standalone-ha.xml
- 我像这样运行 jboss:
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' - 在 192.168.0.10 中,mod_cluster manager 是这样的:
问题)
1. 我的 httpd.conf 对吗?
2.如果我使用“standalone-ha.xml”,mod_cluster有什么配置吗?
3. 有没有一个 apache 和两个 jboss-eap-6.4 的完整配置指南?
感谢您的任何建议...