Error 503 using mod_cluster
nichele Sep 5, 2011 12:50 PMHi All,
i'm using mod_cluster in production but i'm having some 503.
I tried replacing mod_cluster with mod_proxy_balancer and in such case i didn't have any 503 so i'm thinking to a misconfiguration of mod_cluster.
My environemnt is composed by an instance of apache httpd ver. 2.2.19, and of 4 instances of tomcat 6.0.13 with mod_cluster 1.1.2.
In any server.xml file i added:
<Listener className="org.jboss.modcluster.catalina.ModClusterListener"
advertise="false"
proxyList="my-proxy:6666"
maxAttempts="3"
nodeTimeout="600"
ping="30"
loadMetricClass="org.jboss.modcluster.load.metric.impl.BusyConnectorsLoadMetric" />
In my httpd conf file i have:
Listen *:6666
<VirtualHost *:6666>
<Directory />
Order deny,allow
#Deny from all
Allow from all
</Directory>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName mycluster
ServerAdvertise Off
</VirtualHost>
<Location /cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from xx.xx.xx.xx
</Location>
ProxyStatus On
In the apache error log i have:
Sep 5 06:54:10 httpd[26073]: [debug] mod_proxy_cluster.c(622): update_workers_node starting
Sep 5 06:54:10 httpd[26073]: [debug] mod_proxy_cluster.c(637): update_workers_node done
Sep 5 06:54:20 httpd[26073]: [error] (70007)The timeout specified has expired: proxy: AJP: attempt to connect to 10.214.14.209:8001 (10.214.14.209) failed
Sep 5 06:54:20 httpd[26073]: [error] ap_proxy_connect_backend disabling worker for (10.214.14.209)
Sep 5 06:54:20 httpd[26073]: [error] proxy: AJP: failed to make connection to backend: 10.214.14.209
Sep 5 06:54:20 httpd[26073]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
Sep 5 06:54:20 httpd[26073]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
Sep 5 06:54:21 httpd[26073]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
Sep 5 06:54:21 httpd[25976]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
Sep 5 06:54:21 httpd[26073]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
Sep 5 06:54:21 httpd[25976]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
Sep 5 06:54:22 httpd[25976]: [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state for route (NODE02)
For completeness, this is the mod_proxy_balancer configuration i tested:
<Proxy balancer://mycluster>
BalancerMember ajp://node01:8001/ route=NODE01
BalancerMember ajp://node02:8001/ route=NODE02
BalancerMember ajp://node03:8001/ route=NODE03
BalancerMember ajp://node04:8001/ route=NODE04
ProxySet lbmethod=bybusyness
ProxySet stickysession=JSESSIONID|jsessionid
</Proxy>
ProxyPass / balancer://mycluster/
ProxyPassReverse / balancer://mycluster/
ProxyStatus On
Do you have any suggestion ? I tried to play with the timeouts but i was not able to find any working values.
As usual thanks in advance
Stef