On 03.09.2009 07:54, Dhiraj Rajput wrote:
> But here issue is different, I am using the JDBC store for the clustering.
> 
> Suppose my application is running fine and that instant if node1 is goes
> offline 
> 
> It need near about 10 - 20 sec to push the session in to DB and in between
> these 10 sec I f I try to do anything in my application , the application
> kick back me on login page.
> 
> To overcome from this login page issue I am thinking to use the redirect
> parameter for two nodes.

To achieve what? I don't think the redirect attribute will help you
there. There's no way telling the load balancer "if a node goes down,
wait with failover for 20 seconds".

> In this case , can you please tell me wheather this is sutaible and how it
> works.

Regards,

Rainer

> -----Original Message-----
> From: Rainer Jung [mailto:rainer.j...@kippdata.de] 
> Sent: Wednesday, September 02, 2009 11:28 PM
> To: Tomcat Users List
> Subject: Re: redirect paramter in the jk_workers file
> 
> Your mailer uses a very unfriendly way of formatting your messages. So I
> do top posting.
> 
> Yes, as you can read on
> 
> http://tomcat.apache.org/connectors-doc/reference/workers.html
> 
> the atribute redirect is supported since version 1.2.9. For a two node
> load balancer, you don't need it though. If you have many nodes in a
> load balancer, the redirect expresses, which one you prefer for the
> failover. If you dont specify it, the load balancer will use some other
> working node according to its load values.
> 
> Regards,
> 
> Rainer
> 
> 
> On 02.09.2009 06:51, Dhiraj Rajput wrote:
>> Hi Chris,
>>
>>  
>>
>> I have below mention tag in my jk workers file.
>>
>>  
>>
>>  
>>
>>  
>>
>> orker.tomcat.type=lb
>>
>> worker.tomcat.socket_keepalive=1
>>
>> worker.tomcat.socket_timeout=300
>>
>> worker.tomcat.connection_pool_size=50
>>
>> worker.tomcat.connection_pool_timeout=600
>>
>> worker.tomcat.balance_workers=tomcatnode1,tomcatnode2
>>
>> worker.tomcat.sticky_session=true
>>
>> worker.tomcatnode1.port=9732
>>
>> worker.tomcatnode1.host=10.18.25.160
>>
>> worker.tomcatnode1.type=ajp13
>>
>> worker.tomcatnode1.socket_keepalive=True
>>
>> worker.tomcatnode1.socket_timeout=300
>>
>> worker.tomcatnode1.connection_pool_timeout=600
>>
>> worker.tomcatnode1.connect_timeout=600
>>
>> worker.tomcatnode1.redirect=tomcatnode2
>>
>> worker.tomcatnode2.port=9733
>>
>> worker.tomcatnode2.host=10.18.25.107
>>
>> worker.tomcatnode2.type=ajp13
>>
>> worker.tomcatnode2.socket_keepalive=True
>>
>> worker.tomcatnode2.socket_timeout=300
>>
>> worker.tomcatnode2.connection_pool_timeout=600
>>
>> worker.tomcatnode2.redirect=tomcatnode1
>>
>>  
>>
>>  
>>
>> I am not 100% sure how this works and is it really usefull for the
> failover.
>>
>> Thanks and Regards,
>>
>>  
>>
>> Dhiraj V Rajput
>>
>> Associate System Admin
>>
>> Hosting Services Group
>>
>> Premier Technology Group Nagpur
> 
>>
>> Phone: - USA- 1-626-698-1099
>>
>> India Office: 91-712-2446734 ext 30
>>
>> cell no : 91-9370315811
>>
>>  
>>
>> -----Original Message-----
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Sent: Tuesday, September 01, 2009 11:22 PM
>> To: Tomcat Users List
>> Subject: Re: redirect paramter in the jk_workers file
>>
>>  
>>
>> Hash: SHA1
>>
>>  
>>
>> Dhiraj,
>>
>>  
>>
>> On 8/27/2009 8:26 AM, Dhiraj Rajput wrote:
>>
>>> I have issue on the redirect tag in jk workers file.
>>
>>  
>>
>> What is "redirect tag"?
>>
>>  
>>
>> -chris

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

Reply via email to