Re: redirect paramter in the jk_workers file

2009-09-03 Thread Tsirkin Evgeny
I think you can achieve something simular just using longer timeouts on
mod_jk
one of those:
http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html
* use_server_errors*
And use ErrorDocument in apache for custom error page
Evgeny

On Thu, Sep 3, 2009 at 8:54 AM, Dhiraj Rajput <
draj...@premiertechnologygroup.com> wrote:

> Hi Rainer,
>
> Yes , it support to the 1.29 mod jk.
>
> 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.
>
> In this case , can you please tell me wheather this is sutaible and how it
> works.
>
> -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
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: redirect paramter in the jk_workers file

2009-09-03 Thread Rainer Jung
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



RE: redirect paramter in the jk_workers file

2009-09-02 Thread Dhiraj Rajput
Hi Rainer,

Yes , it support to the 1.29 mod jk.

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.

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

-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


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



Re: redirect paramter in the jk_workers file

2009-09-02 Thread Rainer Jung
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



RE: redirect paramter in the jk_workers file

2009-09-01 Thread Dhiraj Rajput
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

 

-BEGIN PGP SIGNED MESSAGE-

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

-BEGIN PGP SIGNATURE-

Version: GnuPG v1.4.9 (MingW32)

Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 

iEYEARECAAYFAkqdX0cACgkQ9CaO5/Lv0PDhPgCeLHCBugeuHTXZxPSLoP6gp236

/gkAn2ydLL6Y8j95Zpb6f802THfOZMUT

=eedS

-END PGP SIGNATURE-

 

-

To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

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



Re: redirect paramter in the jk_workers file

2009-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqdX0cACgkQ9CaO5/Lv0PDhPgCeLHCBugeuHTXZxPSLoP6gp236
/gkAn2ydLL6Y8j95Zpb6f802THfOZMUT
=eedS
-END PGP SIGNATURE-

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



RE: redirect paramter in the jk_workers file

2009-09-01 Thread Dhiraj Rajput
Hi All,

Any idia on below mail

Could anyone help me on the same.

Thanks and Regards,
 


-Original Message-
From: Dhiraj Rajput [mailto:draj...@premiertechnologygroup.com] 
Sent: Thursday, August 27, 2009 5:56 PM
To: users@tomcat.apache.org
Subject: redirect paramter in the jk_workers file

Hi All,

 

I have issue on the redirect tag in jk workers file.

 

Currently I am having mod jk 1.2.27 on my server.

 

I am using two tomcat instances in the cluster.

 

My problem is 

 

1) Is mod Jk 1.2.27 support redirect tag.

2) How the mod redirect works.

 

Can anyone please help me on this.

 

 

Thank you,

 

 



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