I'm new to mod_cluster and looking for some basic advice on the following. I'm using JBoss EAP 5.1 (ie .com offering) and mod_clsuter 1.0.4 (also from red hat).
mod_cluster installed as per the quikc start guide. using a proxyList and not multicast (ie -Djboss.modcluster.proxyList=10.68.15.8:6666). my cluster status page sees the node and deployed contexts (i put tomcat's sample.war in there). I can get there fine vie the server ip (ie http://10.68.15.8/sample/ - on port 80). The configs on apache are:
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
allow from all
Allow from all
Now i'd like to access that via a virtual host so i do:
CustomLog logs/dummy-host.example.com-access_log common
which means clusterbalance.com/sample should be the url ... but that doesn't work and throws:
[Mon Nov 15 16:07:51 2010] [warn] proxy: No protocol handler was valid for the URL /sample/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
which tells me i need more mod_cluster (proxy config).
So i added:
ProxyPass / balancer://mycluster/
but that gives me:
[Mon Nov 15 16:08:59 2010] [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state
so i tried the various CreateBalancers options (0,1,2) but they all result in:
[Mon Nov 15 16:10:27 2010] [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state
So i missing something fundamental about how to tie the virtual into the backend.
Can anyone help? I'm RTFM'ing but, sadly, still a little cnofused.
I hope to have MANY virtuals on one apache tied into multiple different jboss instances behind them.