[us...@httpd] Load balancer sending request when server starts and gets ready

2009-12-07 Thread Onur Ağın
Hi, I am using apache 2.2 as load balancer in front of 2 tomcat servers. I notice that when I restart a tomcat server, when a new request comes to apache, it directs the request to the tomcat server before the application goes up and the user has to wait until the server gets up. Probably when it

[us...@httpd] Configuration change for 2.0

2009-11-25 Thread Onur Ağın
Hi, Configuration below works fine in 2.2 but I have to run it on 2.0 apache 2.0 it says balancer member not found. What is the equal configuration for 2.0 # Proxy ProxyRequests Off Order deny,allow Allow from all BalancerMember http://:7102 BalancerMember http://:7106 Proxy

[us...@httpd] Invalid command error Load balancer on Solaris 10

2009-11-25 Thread Onur Ağın
Hi, I have compiled and installed apache httpd sources on solaris 10. My configure statement was: I am trying to test load balancing... ./configure -prefix=/export/home0/xxx/httpserver --enable-proxy --enable-proxy-connect --enable-proxy-http I get this error when I start apache: Invalid command

Re: [us...@httpd] Load balancer sticky session problem

2009-11-24 Thread Onur Ağın
Yes, the cookie is JSESSIONID, In the server response, Set-Cookie:JSESSIONID=x;path=xxx; I am using a tomcat 6.0 server. On Tue, Nov 24, 2009 at 2:39 PM, Boyle Owen wrote: > Forget the failover thing - Let's get back to your original problem > which is stickysession not working. > > Have you

Re: [us...@httpd] Load balancer sticky session problem

2009-11-24 Thread Onur Ağın
What if I have a session clustering mechanism which works asynchronously, so if host A fails, then the sessions will be replicated to server B in several seconds, and if the session is sticky and request is moved to B, only request that will come on that second will fail. But if the load balancer i

Re: [us...@httpd] Load balancer sticky session problem

2009-11-24 Thread Onur Ağın
"The downside is that if the desired server is really down, the request will eventually fail." I wouldn't want this, the reason why I am using a load balancer is to have high availability, not just to balance a load. How can I overcome this? Aren't there any alternatives? Also what does it mean

[us...@httpd] Load balancer sticky session problem

2009-11-24 Thread Onur Ağın
Hi, With the configuration below, sticky sessions won't work... I checked that both servers get the request with the same session IDs. Any ideas? # Proxy ProxyRequests Off Order deny,allow Allow from all BalancerMember http://10.xxx:7101 BalancerMember http://10.xxx:7102 ProxyPass

Re: [us...@httpd] Different load balancers on different ports on same apache http server

2009-11-24 Thread Onur Ağın
thanks a lot for your reply, it works now... Tue, Nov 24, 2009 at 11:42 AM, Mark Watts wrote: > > Use a trailing / on the ProxyPass lines. > Also, add a ProxyPassReverse line to match the ProxyPass ones. > > > Mark. > > On Tue, 2009-11-24 at 11:27 +0200, Onur Ağın wrot

Re: [us...@httpd] Different load balancers on different ports on same apache http server

2009-11-24 Thread Onur Ağın
BalancerMember http://10.xxx:7104 ProxyPass / balancer://mycluster1 ProxyPass / balancer://mycluster2 On Mon, Nov 23, 2009 at 8:39 PM, Onur Ağın wrote: > this should be a simple configuration, yet there are no articles about > this > this is how load

Re: [us...@httpd] Different load balancers on different ports on same apache http server

2009-11-23 Thread Onur Ağın
this should be a simple configuration, yet there are no articles about this this is how load balancers should work, either different IPs or different ports for load balanced ips, right? On Mon, Nov 23, 2009 at 4:12 PM, Onur Ağın wrote: > Thanks for your reply, > > I get an Intern

Re: [us...@httpd] Different load balancers on different ports on same apache http server

2009-11-23 Thread Onur Ağın
#LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so LoadModule vhost_alias_module modules/mod_vhost_alias.so On Mon, Nov 23, 2009 at 4:04 PM, Mark Watts wrote: > On Mon, 2009-11-23 at 15:57 +0200, Onur Ağın wrote: > > Hi, > > > &g

[us...@httpd] Different load balancers on different ports on same apache http server

2009-11-23 Thread Onur Ağın
Hi, I am trying to define several load balancers each working on different ports on same apache http server. For example, calling the apache http server on 8001 should load balance on servers a and b, while calls made to port 8002 should be forwarded to c and d. How can I achieve this? Thanks...