Hello Andre,
We are proxying request from apache to tomcat using mod_proxy and mod_proxy=
_ajp
Following is the load balancer configuration in apache.
kindly let me know in case you need further details.
# Port 80
=A0=A0 Listen server_name:80
=A0=A0 #Listen 153.88.86.250:80
=A0=A0 <VirtualHost _default_:80>
=A0=A0=A0=A0=A0 ServerName server_name
=A0=A0=A0=A0=A0=A0=20
=A0=A0=A0=A0=A0 Timeout 10800
=A0=A0=A0=A0=A0 ProxyTimeout 10800
=A0=A0=A0=A0=A0 ProxyRequests Off
=A0=A0=A0=A0=A0=A0 ProxyPass /eMatrix balancer://cluster stickysession=3DJS=
ESSIONID|jsessionid nofailover=3DOn
=A0=A0=A0=A0=A0=A0 #ProxyPass /eMatrix balancer://cluster stickysession=3DJ=
SESSIONID nofailover=3DOn
=A0=A0=A0=A0=A0=A0 ProxyPreserveHost On
=A0=A0=A0=A0=A0=A0 ProxyPass /eMatrix ajp://server_name:8009/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPass /eMatrix ajp://server_name:8010/eMatrix
=A0=A0=A0=A0=A0 ProxyPass /eMatrix ajp://server_name:8011/eMatrix
=A0=A0=A0=A0=A0 ProxyPass /eMatrix ajp://server_name:9009/eMatrix
=A0=A0=A0=A0=A0 ProxyPass /eMatrix ajp://server_name:9010/eMatrix
=A0=A0=A0=A0=A0 ProxyPass /eMatrix ajp://server_name:9011/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPassReverse /eMatrix ajp://server_name:8009/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPassReverse /eMatrix ajp://server_name:8010/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPassReverse /eMatrix ajp://server_name:8011/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPassReverse /eMatrix ajp://server_name:9009/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPassReverse /eMatrix ajp://server_name:9010/eMatrix
=A0=A0=A0=A0=A0=A0 ProxyPassReverse /eMatrix ajp://server_name:9011/eMatrix
=A0=A0=A0=A0=A0=A0 <Proxy balancer://cluster>
=A0=A0=A0=A0=A0=A0=A0=A0 BalancerMember ajp://server_name:8009/eMatrix rout=
e=3Dmarsprod_rmiserver_1 loadfactor=3D33 retry=3D60
=A0=A0=A0=A0=A0=A0=A0=A0 BalancerMember ajp://server_name:8010/eMatrix rout=
e=3Dmarsprod_rmiserver_2 loadfactor=3D33 retry=3D60
=A0=A0=A0=A0=A0=A0=A0=A0 BalancerMember ajp://server_name:8011/eMatrix rout=
e=3Dmarsprod_rmiserver_3 loadfactor=3D33 retry=3D60
=A0=A0=A0=A0=A0=A0=A0=A0 BalancerMember ajp://server_name:9009/eMatrix rout=
e=3Dmarsprod_rmiserver_4 loadfactor=3D33 retry=3D60
=A0=A0=A0=A0=A0=A0=A0=A0 BalancerMember ajp://server_name:9010/eMatrix rout=
e=3Dmarsprod_rmiserver_5 loadfactor=3D33 retry=3D60
=A0=A0=A0=A0=A0=A0=A0=A0 #load balancing performed based on number of user =
requests
=A0=A0=A0=A0=A0=A0=A0=A0 #ProxySet lbmethod=3Dbyrequests
=A0=A0=A0=A0=A0=A0=A0=A0 # Report server is for Report purpose only so bala=
ncing is required now.
=A0=A0=A0=A0=A0=A0=A0=A0 BalancerMember ajp://server_name:9011/eMatrix rout=
e=3Dmarsprod_rmiserver_6 loadfactor=3D33 retry=3D60
=A0=A0=A0=A0=A0=A0=A0=A0 ProxySet lbmethod=3Dbyrequests
=A0=A0=A0=A0=A0=A0 </Proxy>
=A0=A0=A0=A0=A0=A0 #Status page for balancer
=A0=A0=A0=A0=A0=A0 <Location /balancer>
=A0=A0=A0=A0=A0=A0 SetHandler balancer-manager
=A0=A0=A0=A0=A0=A0 Order Deny,Allow
=A0=A0=A0=A0=A0=A0 Deny from all
=A0=A0=A0=A0=A0=A0 Allow from all
=A0=A0=A0=A0=A0 </Location>
=A0=A0=A0=A0=A0 ProxyStatus On
=A0=A0=A0=A0=A0 <Location /status>
=A0=A0=A0=A0=A0 SetHandler server-status
=A0=A0=A0=A0=A0 Order Deny,Allow
=A0=A0=A0=A0=A0 Deny from all
=A0=A0=A0=A0=A0 Allow from all
=A0=A0=A0=A0=A0 </Location>
=A0=A0=A0=A0=A0 ErrorLog /opt/web/apache/app/mxora/logs/error.log
=A0=A0=A0=A0=A0=20
=A0=A0 </VirtualHost>
# END port 80
--- On Tue, 11/16/10, Andr=E9 Warnier <aw@ice-sa.com> wrote:
From: Andr=E9 Warnier <aw@ice-sa.com>
Subject: Re: Tomcat Going down Frequently
To: "Tomcat Users List" <users@tomcat.apache.org>
Date: Tuesday, November 16, 2010, 4:55 PM
Amol Puglia wrote:
> Hello Andre,
>=20
> Thanks for the updates. I am not using mod_jk , I am using proxy modules =
for redirecting request from apache to tomcat.
>=20
Ok, sorry, I confused your post with another one.
But anyway, your configuration shows a whole lot of proxy modules, many of =
which do not seem to have any relation with proxying calls to Tomcat. Such =
as these :
>> LoadModule proxy_connect_module modules/mod_proxy_connect.so
>> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
>> LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
The following /may/ have a relation with the proxying to Tomcat, but which =
one are you really using ?
>> LoadModule proxy_http_module modules/mod_proxy_http.so
>> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
Usually, people use *either* mod_proxy_http *or* mod_proxy_ajp, so which on=
e is being used ? Can you provide some information about the apache httpd c=
onfiguration that shows what is being proxied and how ?
> As you said that there is problem in application code, Is there anything =
we can point out where exactly is the problem in the code or configuration?
>=20
I thought that Pid already pointed that out.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
=0A=0A=0A
|