tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rikslovein <riks.lov...@gmail.com>
Subject Re: Using mod_jk in cluster environment responds HTTP 500
Date Mon, 15 Nov 2010 13:18:11 GMT

awarnier,

Thanks for your response. I changed this and still it didn't solve my
problem. The request are still reaching to the server which I made down
using jkmanager.

Here's the updated workers.proeprties:
worker.list=loadbal_hub_prod,jkstatus
worker.loadbal_hub_prod.type=lb
worker.loadbal_hub_prod.balance_workers=hub0,hub1
worker.loadbal_hub_prod.sticky_session=false

worker.jkstatus.type=status

worker.list=hub0
worker.hub0.port=8009
worker.hub0.host=localhost
worker.hub0.type=ajp13
worker.hub0.lbfactor=1
#worker.hub0.redirect=hub1

worker.list=hub1
worker.hub1.port=9009
worker.hub1.host=localhost
worker.hub1.type=ajp13
worker.hub1.lbfactor=1
#worker.hub1.redirect=hub0


Regards...


awarnier wrote:
> 
> rikslovein wrote:
>> Thanks for the quick response Chris. 
>> 
>> Please find the details given below:
>> 
>> Let me know if you need more information.
>> 
>> Thanks & regards...
>> 
>> Server.xml
>> <Connector port="8009" address="localhost" 
>> enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
>> 
>> workers.properties:
>> workers.tomcat_home=/opt/webhost/DWH-Tomcat-Inst/tomcat5.5.23
>> workers.java_home=/usr/lib/jvm/java-1.5.0
> 
> The above 2 properties are obsolete (since a long time).  Remove them.
> 
>> ps=/
> 
> I think this one too (not sure).
> 
>> 
>> worker.list=loadbal_hub_prod,jkstatus,hub0,hub1
>> 
> 
> This is wrong.  If the workers are already balanced (by the
> loadbal_hub_prod balancer), 
> then they should not be separately listed in worker.list.
> Correct :
> worker.list=loadbal_hub_prod,jkstatus
> 
>> worker.hub0.port=8009
>> worker.hub0.host=localhost
>> worker.hub0.type=ajp13
>> worker.hub0.lbfactor=1
>> worker.hub0.redirect=hub1
>> 
>> worker.hub1.port=9009
>> worker.hub1.host=localhost
>> worker.hub1.type=ajp13
>> worker.hub1.lbfactor=1
>> worker.hub1.redirect=hub0
>> 
>> worker.jkstatus.type=status
>> 
>> worker.loadbal_hub_prod.type=lb
>> worker.loadbal_hub_prod.balanced_workers=hub0,hub1
> 
> The property is "balance_workers", not "balanced_workers".
>   worker.loadbal_hub_prod.balance_workers=hub0,hub1
> 
> (http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html)
> 
>> worker.loadbal_hub_prod.sticky_session=false
>> 
>> 
>> 
>> Christopher Schultz-2 wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Rikslovein,
>>>
>>> On 11/12/2010 7:19 AM, rikslovein wrote:
>>>> I've one apache and two tomcat installed in my server. The
>>>> communication
>>>> happens using AJP 1.3. I'm using the jkmanager URL to
>>>> activate/deactivate
>>>> the tomcat instances. Also, I'm making sure atleast one of the two
>>>> tomcat
>>>> instance is up when other one is down.
>>>>
>>>> The problem is sometimes the client request does go to deactivated
>>>> tomcat
>>>> instance resulting in HTTP 500 error. I want the request to be
>>>> redirected
>>>> only to the active tomcat instance and not the deactivated one.
>>>>
>>>> Please suggest how can I do this. 
>>> Can you post your workers.properties file (minus any secrets) and also
>>> your <Connector> configuration from Tomcat's server.xml file?
>>>
>>> - -chris
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.10 (MingW32)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iEYEARECAAYFAkzdY9oACgkQ9CaO5/Lv0PAt9ACeMGF7xMjQl3oM+qz66LP0cENS
>>> mEQAmwZ2pRzawrlcBaOlqOD3tXyES9ap
>>> =zsLx
>>> -----END PGP SIGNATURE-----
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Using-mod_jk-in-cluster-environment-responds-HTTP-500-tp30198809p30218786.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message