Re: Can two tomcats back each other up on one machine?

2002-07-25 Thread Tom Oinn



Brandon Cruz wrote:
 I am running tomcat 3.2.4 (I know it's old, but it works great!).  We
 typically have around 50 database connections and twice as many sessions
 going at any given time.  I would like to set up another tomcat, or find a
 solution to restart without having to kill everyone's session.  Is there
 anyway I can set up this up so that if one tomcat goes down for restart the
 sessions can automatically be transferred over to the other tomcat?  After I
 restart the first, then I can restart the second the same way.  The problem
 is that we usually add two or three virtual hosts per day and need those
 changes to be recognized.
 
 Has anyone done anything like this before or run into the same problem?

Not sure about exactly how you do what you're describing, but another 
solution is as follows.

1) set up a redirector with sticky session management, so requests are 
routed through to whichever container their session is bound to

2) when you want to update your services, you don't shut down either 
container, you simply prevent new sessions being created on one or the 
other.

3) when all active sessions have cleared from the unreachable container, 
you can shut it down and reconfigure it

4) repeat in the obvious fashion for the other

It may be possible (well okay, it's possible, it may be easy) to 
automate this, and similarly it scales to multiple instances quite 
nicely. It's trivial if you have good hardware redirectors, but they're 
not exactly cheap bits of kit so it's entirely likely you don't.

Hope that's of some help,

Tom


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 



Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
  
Chronological
--
  

 
  

 

  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  










 




<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-archive.com/blank.png";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "3243237953";
google_color_border = "CE9689";
google_color_bg = ["FF","ECE5DF"];
google_color_link = "006792";
google_color_url = "006792";
google_color_text = "000000";
//-->







Re: Can two tomcats back each other up on one machine?
Tom Oinn


RE: Can two tomcats back each other up on one machine?
Brandon Cruz





 






  
  





Reply via email to



  
  





 
 







RE: Can two tomcats back each other up on one machine?

2002-07-25 Thread Brandon Cruz

Thanks Tom,

I also saw that there was development under way to set up something that
will replicate sessions across all tomcat instances.  I don't know how long
ago that was written, does anyone know if that has happened yet?

Brandon

-Original Message-
From: Tom Oinn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 9:05 AM
To: Tomcat Users List
Subject: Re: Can two tomcats back each other up on one machine?




Brandon Cruz wrote:
 I am running tomcat 3.2.4 (I know it's old, but it works great!).  We
 typically have around 50 database connections and twice as many sessions
 going at any given time.  I would like to set up another tomcat, or find a
 solution to restart without having to kill everyone's session.  Is there
 anyway I can set up this up so that if one tomcat goes down for restart
the
 sessions can automatically be transferred over to the other tomcat?  After
I
 restart the first, then I can restart the second the same way.  The
problem
 is that we usually add two or three virtual hosts per day and need those
 changes to be recognized.

 Has anyone done anything like this before or run into the same problem?

Not sure about exactly how you do what you're describing, but another
solution is as follows.

1) set up a redirector with sticky session management, so requests are
routed through to whichever container their session is bound to

2) when you want to update your services, you don't shut down either
container, you simply prevent new sessions being created on one or the
other.

3) when all active sessions have cleared from the unreachable container,
you can shut it down and reconfigure it

4) repeat in the obvious fashion for the other

It may be possible (well



Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













Re: Can two tomcats back each other up on one machine?,
Tom Oinn

RE: Can two tomcats back each other up on one machine?,
Brandon Cruz














 
--  
Chronological
--
  

 
  

 
  --  
  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  













RE: Can two tomcats back each other up on one machine?,
Brandon Cruz











 
  
Chronological
--
  

 
  

 

  Thread 
  --  
  





  
  
  
  
  [EMAIL PROTECTED]">
  Reply via email to
  
  










 




<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-archive.com/blank.png";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "3243237953";
google_color_border = "CE9689";
google_color_bg = ["FF","ECE5DF"];
google_color_link = "006792";
google_color_url = "006792";
google_color_text = "00";
//-->







Re: Can two tomcats back each other up on one machine?
Tom Oinn


RE: Can two tomcats back each other up on one machine?
Brandon Cruz





 






  
  





Reply via email to