mod_proxy_balance: route redirect not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: <users@xxxxxxxxxxxxxxxx>
- Subject: mod_proxy_balance: route redirect not working
- From: <Juergen.Link@xxxxxxxxx>
- Date: Mon, 6 Jul 2009 17:29:12 +0200
- Accept-language: de-DE, en-US
- Acceptlanguage: de-DE, en-US
- Reply-to: users@xxxxxxxxxxxxxxxx
- Thread-index: Acn+ToNkl/mNmMN5SQq9giVKDhEWtw==
- Thread-topic: mod_proxy_balance: route redirect not working
We use
mod_proxy to distribute requests to four tomcat instances.
Our configuration
(vhost.conf) is as follows:
<VirtualHost
aa.bb.cc:3000>
ProxyPass /balancer-manager !
ProxyPass / balancer://mybalancer/ stickysession=JSESSIONID
<Proxy
balancer://mybalancer>
BalancerMember ajp://xx.yy.zz:11009/ldsportal route=tomcat1
loadfactor=50
BalancerMember
ajp://xx.yy.zz:12009/ldsportal route=tomcat2
loadfactor=50
BalancerMember
ajp://xx.yy.zz:13009/ldsportal route=tomcat3
loadfactor=50
BalancerMember
ajp://xx.yy.zz:13009/ldsportal route=tomcat4 loadfactor=50
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
</Location>
</VirtualHost>
Things work fine
this way, but occasionally, we have to shut down a single instance for
maintenance.
We use the balancer
manager to reconfigure the respective worker (say: tomcat1) to redirect to
another worker:
- enter e.g. tomcat2
in the "Route Redirect" form field.
- on submit, the
respective worker is marked with "RouteRedir=tomcat2" in the worker
list.
Our problem is,
requests without a session id still get routed to worker tomcat1 (as well as to
the other 3 instances).
We use [Server
Version: Apache/2.2.3 (Linux/SUSE)] in our production env, but I also tried [Server
Version: Apache/2.2.11 (Win32)]
The result is the
same in both setups.
Am I missing
something essential?
Cheers
Jürgen
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]