我想用一个apache httpd和两个JBOSS EAP 6.4设置集群和故障转移系统。 Ubuntu 14.04.1
我的httpd.config就是这样:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_http_module modules/mod_proxy_http.soLoadModule 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
问题)
1.我的httpd.conf是对的吗?
2.如果我使用“standalone-ha.xml”,是否有mod_cluster的配置?
3.是否有任何完整的配置指南,一个apache和两个jboss-eap-6.4?
谢谢你的任何建议......
答案 0 :(得分:1)
不确定apache配置。 但是对于JBoss,您需要为广告配置mod_cluster。 管理指南中描述了JBoss服务器的配置: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html/Administration_and_Configuration_Guide/sect-Web_HTTP_Connectors_and_HTTP_Clustering.html
社区文档中的集群howto包含一个带有apache和JBoss配置的示例: https://docs.jboss.org/author/display/AS72/AS7+Cluster+Howto
答案 1 :(得分:0)
**我必须将mod_cluster-1.2.x与JBOSS EAP 6.x一起使用
1. mod_cluster download http://mod-cluster.jboss.org/mod_cluster/downloads/1-2-6-Final-bin 2. unzip and install mod_cluster D:\httpd-2.2\bin>installconf.bat 3. edit httpd.conf 127.0.0.1 -> local ip address (below image) 4.install EAP6.4 download from http://www.jboss.org/products/eap/download/ Nothing to configure. 5. run EAP6.4 requirements: - balancing - failover - session replication when using tcp for jgroups: at standalone-ha.xml (line:271 udp -> tcp ) <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcp"> standalone.bat -c standalone-ha.xml -b 192.168.0.10 -Djboss.node.name=node1 standalone.bat -c standalone-ha.xml -b 192.168.0.195 -Djboss.node.name=node2 -b x.x.x.x: EAP6.4 IP( for standalone-xx.xml)