Mod Cluster with 2 Apache and 2 JBOSS
fgoetnic Jan 17, 2018 8:45 AMHello,
I have Jbosseap7 and Apache2.4
I defined one apache with 2 jboss slaves (3 differents windows and the master is on the same windows that apache) with mod_cluster and it works fine with a socket binding group in domain.xml (see step 1)
I want to add an apache, so i copy the same httpd.conf(i changed ip) , i define a proxy list in domain.xml but it doesn't work. (with proxy list, i deleted the socket binding group (see step 2) )
after i activated serveradvertise but still nok
Here is my config (step 1) and after my config step 2
Step 1 : ok :
httpd.conf :
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule advertise_module modules/mod_advertise.so
MemManagerFile cache/mod_cluster
<IfModule manager_module>
Listen 172.24.247.32:6666
ManagerBalancerName clusterprd
<VirtualHost 172.24.247.32:6666>
<Directory />
# add ip of JBoss nodes to join this proxy here
Require ip 172.24.247.34
Require ip 172.24.247.35
</Directory>
ServerAdvertise off
EnableMCPMReceive
ErrorLog E:/Apache/logs/mod_cluster_error.log
CustomLog E:/Apache/logs/mod_cluster_access.log combined
<Location /mod_cluster_manager>
SetHandler mod_cluster-manager
# add ip of clients allowed to access mod_cluster-manager
Require ip 172.24.247.32
Order deny,allow
Deny from all
Allow from 172.24.247
</Location>
</VirtualHost>
</IfModule>
and i add in domain.xml of the master the ip of the apache :
<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
<mod-cluster-config advertise-socket="modcluster" proxies="apacheprd" connector="ajp">
<dynamic-load-provider>
<load-metric type="cpu"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
<socket-binding-groups>
<outbound-socket-binding name="apacheprd">
<remote-destination host="172.24.247.32" port="6666"/>
</outbound-socket-binding>
</socket-binding-groups>
---
Step 2 :
Two httpd as above
domain.xml : i define a proxy list with ip of the apaches
<subsystem xmlns="urn:jboss:domain:modcluster:2.0">
<mod-cluster-config advertise-socket="modcluster" proxy-list="172.24.247.32:6666,172.24.247.33:6666" connector="ajp">
<dynamic-load-provider>
<load-metric type="cpu"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
but i doesn't works
So , is there something to add in domain.xml to join apaches ?
Regards,
Roland