Mod_cluster can't read status in non-multicast environment
funa516 May 7, 2010 4:43 AMHi,
I implemented mod_cluster, but frontend httpd cannot read STATUS command from backend jboss.web.
I checked Mod_cluster status page by web browser,
the status is following.
===================================================================
mod_cluster/1.1.x
Auto Refresh show DUMP output show INFO output
Node 127.0.0.1:8009:jboss.web (ajp://127.0.0.1:8009):
Enable Contexts Disable Contexts
Balancer: mycluster,Domain: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 26,Ttl:
60000000,Status: NOTOK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: -1
===================================================================
"Status: NOTOK". And on backend jboss server, executing run.sh -c all, it outputs following error.
========================
04:16:26,188 ERROR [org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler] Error [MEM: MEM: Can't read node: {4}] sending command STATUS to proxy /xxx.xxx.xxx.xxx:6666, configuration will be reset
========================
Httpd proxy port is 6666, and proxyList is xxx.xxx.xxx.xxx:6666 .
How can I repair the httpd and jboss server ?
Apache httpd.conf is,
========= begin httpd.conf ========================
<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from all
</Location>
Listen xxx.xxx.xxx.xxx:6666
<VirtualHost xxx.xxx.xxx.xxx:6666>
<Directory />
Order deny,allow
Deny from all
Allow from all
</Directory>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName mycluster
ServerAdvertise off
AdvertiseFrequency 5
CreateBalancers 0
</VirtualHost>
========= end httpd.conf ========================
JBOSS mod_cluster-jboss-beans.xml file is
$JBOSS_HOME/server/all/deploy/mod_cluster.sar/META-INF/mod_cluster-jboss-beans.xml
========= mod_cluster-jboss-beans.xml ========================
<!-- Comma separated list of address:port listing the httpd servers
where mod_cluster is running. -->
<!-- <property name="proxyList">${jboss.mod_cluster.proxyList:}</property> -->
<property name="proxyList">xxx.xxx.xxx.xxx:6666</property>
<!-- URL prefix to send with commands to mod_cluster. Default is no prefix. -->
<!--property name="proxyURL"></property-->
========= mod_cluster-jboss-beans.xml ========================
Thanks and regards,
Kenji