You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Amol Puglia <am...@yahoo.com> on 2010/09/13 11:56:40 UTC

apache tomcat load balancing not working using mod_proxy

Hello Team,

I am trying to achieve load balancing with proxies modules.

Following are the configuration of proxy module.

LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

<IfDefine SSL>
   Listen server_name:443

   <VirtualHost _default_:443>

      <Proxy balancer://tomcatservers>
         BalancerMember ajp://server_name:8009 route=tomcat4 retry=60
         BalancerMember ajp://server_name:8010 route=tomcat5 retry=60
      </Proxy>

      <Location /*>
         Allow From
 All
         ProxyPass balancer://tomcatservers/* stickysession=JSESSIONID nofailover=off
      </Location>


and tomcat server.xml contain following entry.

Tomcat5

<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat5">

Tomcat4

<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat5">


kindly assist me to acheive loadbalancing using proxies modules.


      

Re: apache tomcat load balancing not working using mod_proxy

Posted by Amol Puglia <am...@yahoo.com>.
Hi,

I am using following versions of softwares 

1)Apache version :- 2.2.14

2)Tomcat version :- apache-tomcat-6.0.20

3)Java Version :- jdk 1.6.0.5

4)Operating system :- solaris 5.10

I am trying to acheive load balancing for two instance of tomcat with apache with mod_proxy module.

As of now our apache request is not getting redirected to tomcat and we are getting following error in the error_logs.

[Mon Sep 13 10:43:59 2010] [error] [client 172.17.136.151] File does not exist: /opt/web/apache2/htdocs/eMatrix

kindly assist.

--- On Mon, 9/13/10, André Warnier <aw...@ice-sa.com> wrote:

From: André Warnier <aw...@ice-sa.com>
Subject: Re: apache tomcat load balancing not working using mod_proxy
To: "Tomcat Users List" <us...@tomcat.apache.org>
Date: Monday, September 13, 2010, 3:30 PM

Amol Puglia wrote:
..
> 
> 
> kindly assist me to acheive loadbalancing using proxies modules.
> 
Kindly telling us what version of Apache, Tomcat, Java etc you are using, on which platform,
and what is not working, may help us helping you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




      

Re: apache tomcat load balancing not working using mod_proxy

Posted by André Warnier <aw...@ice-sa.com>.
Amol Puglia wrote:
..
> 
> 
> kindly assist me to acheive loadbalancing using proxies modules.
> 
Kindly telling us what version of Apache, Tomcat, Java etc you are using, on which platform,
and what is not working, may help us helping you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: apache tomcat load balancing not working using mod_proxy

Posted by Mark Thomas <ma...@apache.org>.
On 13/09/2010 11:20, Amol Puglia wrote:
> Hello Mark,
> 
> Thanks for the response.
> 
> Please let me know what do i use in place of wildcard.

You don't. Read the docs for ProxyPass.

> 2)I required nofailover attribute as i have to load balanced two tomcat servers in the backend.

No you don't. Load balancing != clustering.

> 3)It will be good if you can let me know when to use the stickysession attribute or provide me the docs link which explains when to use the stickysession attribute.

http://www.lmgtfy.com/?q=httpd+2.2+ProxyPass

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: apache tomcat load balancing not working using mod_proxy

Posted by Amol Puglia <am...@yahoo.com>.
Hello Mark,

Thanks for the response.

Please let me know what do i use in place of wildcard.

2)I required nofailover attribute as i have to load balanced two tomcat servers in the backend.

3)It will be good if you can let me know when to use the stickysession attribute or provide me the docs link which explains when to use the stickysession attribute.

4)I have fixed the jvmroutepath.


--- On Mon, 9/13/10, Mark Thomas <ma...@apache.org> wrote:

From: Mark Thomas <ma...@apache.org>
Subject: Re: apache tomcat load balancing not working using mod_proxy
To: "Tomcat Users List" <us...@tomcat.apache.org>
Date: Monday, September 13, 2010, 3:36 PM

On 13/09/2010 10:56, Amol Puglia wrote:
>       <Location /*>

No need to use a wildcard.

>          ProxyPass balancer://tomcatservers/* stickysession=JSESSIONID nofailover=off

No need to use a wildcard.
The stickysession attribute is invalid - see the docs
The nofailover attribue is unexpected unless you have clustering configured.

> Tomcat4
> 
> <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat5">

Fix your jvmRoute.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




      

Re: apache tomcat load balancing not working using mod_proxy

Posted by Mark Thomas <ma...@apache.org>.
On 13/09/2010 10:56, Amol Puglia wrote:
>       <Location /*>

No need to use a wildcard.

>          ProxyPass balancer://tomcatservers/* stickysession=JSESSIONID nofailover=off

No need to use a wildcard.
The stickysession attribute is invalid - see the docs
The nofailover attribue is unexpected unless you have clustering configured.

> Tomcat4
> 
> <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat5">

Fix your jvmRoute.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org