proxy_cluster_isup: Can't find worker for 1
claudio4j Feb 23, 2011 10:46 AMHi, see my system
- Fedora Linux 12
- httpd -v Server version: Apache/2.2.15 (yum install)
- mod_cluster httpd modules: mod_cluster-1.0.4.GA-linux2-x86-so.tar.gz
- JBoss EAP 5.1.0
- mod_cluster.sar copied from EAP/mod_cluster/mod_cluster.sar
I cannot use a recent mod_cluster version, because EAP already support 1.0.4
$ cat /etc/httpd/conf.d/jboss_cluster.conf
# by claudio
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
Listen 192.168.1.10:7777
<VirtualHost 192.168.1.10:7777>
CreateBalancers 1
UseAlias 0
<Directory />
Order deny,allow
Deny from all
Allow from 192.168.1.10
</Directory>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ServerAdvertise Off
# logs especificos do mod_cluster
ErrorLog logs/mod-cluster-7777-error_log
CustomLog logs/mod-cluster-7777-access_log combined
LogLevel debug
</VirtualHost>
<Location /cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from 192.168.1.10
</Location>
- run.conf
JAVA_OPTS="$JAVA_OPTS -Djboss.modcluster.proxyList=192.168.1.10:7777 -Djboss.mod_cluster.advertise=false "
===> When the httpd is started it prints
[Wed Feb 23 12:28:10 2011] [debug] mod_manager.c(1432): manager_trans ENABLE-APP (/)
[Wed Feb 23 12:28:10 2011] [debug] mod_manager.c(1947): manager_handler ENABLE-APP (/) processing: "JVMRoute=lb-1&Alias=localhost&Context=%2fjmx-console"
[Wed Feb 23 12:28:10 2011] [debug] mod_manager.c(1988): manager_handler ENABLE-APP OK
[Wed Feb 23 12:28:10 2011] [debug] mod_manager.c(1432): manager_trans ENABLE-APP (/)
[Wed Feb 23 12:28:10 2011] [debug] mod_manager.c(1947): manager_handler ENABLE-APP (/) processing: "JVMRoute=lb-1&Alias=localhost&Context=%2fload-demo"
[Wed Feb 23 12:28:10 2011] [debug] mod_manager.c(1988): manager_handler ENABLE-APP OK
===> Going to /cluster-manager it shows
Auto Refresh show DUMP output show INFO output
Node lb-1 (ajp://192.168.1.10:8009):
Enable Contexts Disable Contexts
Balancer: mycluster,Domain: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: 0
Virtual Host 1:
Contexts:
/jmx-console, Status: ENABLED Disable
/load-demo, Status: ENABLED Disable
Aliases:
localhost
So, looks like everything is fine.
===> So I type into the browser http://<machine>/load-demo/sessions
Not Found
The requested URL /load-demo/sessions was not found on this server.
Apache/2.2.15 (Fedora) Server at kursk Port 80
===> The /var/log/httpd/mod-cluster-7777-error_log
[Wed Feb 23 12:47:34 2011] [debug] mod_manager.c(1988): manager_handler STATUS OK
[Wed Feb 23 12:47:44 2011] [debug] mod_manager.c(1432): manager_trans STATUS (/)
[Wed Feb 23 12:47:44 2011] [debug] mod_manager.c(1947): manager_handler STATUS (/) processing: "JVMRoute=lb-1&Load=94"
[Wed Feb 23 12:47:44 2011] [debug] mod_proxy_cluster.c(1364): proxy_cluster_isup: Can't find worker for 1
[Wed Feb 23 12:47:44 2011] [debug] mod_manager.c(1988): manager_handler STATUS OK
Going directly to jboss, it works
http://<machine>:8080/load-demo/sessions
Handled By: lb-1
So, is there anything else I must configure to make this work ?
Thanks
Claudio