Re: Load Balnce and failover for Tomcat
Didn't you say you could already do this? Yes, but it is a little hacky. MBeans seem a more approiate way to go and wanted to know if they could be used for this. You need to write a service that knows that all webapps have started, or have your load balancer test each one before reporting that a server is up. And can this be done via MBeans or some other container-related method? -- View this message in context: http://www.nabble.com/Load-Balance-and-failover-for-Tomcat-tp17207372p17255133.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balnce and failover for Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stront, Stront wrote: | Didn't you say you could already do this? | | Yes, but it is a little hacky. MBeans seem a more approiate way to go and | wanted to know if they could be used for this. | | You need to write a service that knows that all webapps have started, or | have your load balancer test each one before reporting that a server is | up. | | And can this be done via MBeans or some other container-related method? Sorry, I've never worked with the MBeans. I would imagine that the Tomcat website has documentation on all the relevant MBeans. Otherwise, you might want to check out the source to LambdaProbe, which probably uses MBeans to determine everything about a running Tomcat. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgsVx8ACgkQ9CaO5/Lv0PBirwCgwPRgJxkfU1bvkAYCimg8flUT jAkAn1eHPSWRC6HYBYf+OpTLuTIQKFzy =HeAG -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balnce and failover for Tomcat
So can anyone answer my initial question: How can I determine 1. That the server is not in the a startup, shutdown stage in it lifecycle; has acheived the after_start state 2. That all of the webapps are started ? Thanks. David Fisher wrote: I think what the experts are saying is that even if your webapps is started it could be dependent on a large startup operation. Take for example Apache Roller which can take several minutes to rebuild its persistence state and while up will reject requests. The only way to know if the webapps is up is to test it with a request to your webapps. So, the answer will differ for each webapps and the resource to ask will differ as well. Best of luck. Regards, Dave On May 13, 2008, at 7:46 AM, Stront wrote: From: Stront [mailto:[EMAIL PROTECTED] 2. That all of the webapps are running. That's webapp-dependent, surely? Tomcat can't determine all the ways in which your application can fail. But it can tell if the app has started; Tomcat's manager displays a list of apps and whether it is running. -- View this message in context: http://www.nabble.com/Load-Balance-and-failover-for-Tomcat-tp17207372p17207537.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Load-Balance-and-failover-for-Tomcat-tp17207372p17225983.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balnce and failover for Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stront, Stront wrote: | So can anyone answer my initial question: How can I determine | | 1. That the server is not in the a startup, shutdown stage in it lifecycle; | has acheived the after_start state Didn't you say you could already do this? | 2. That all of the webapps are started You need to write a service that knows that all webapps have started, or have your load balancer test each one before reporting that a server is up. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgq8UgACgkQ9CaO5/Lv0PDpuACdGqcKMMmZsNdqSm+TGEqk78t9 rbsAoKDcp8cs2503BrvbqVfArtJc7Vvu =9bWm -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load Balnce and failover for Tomcat
I need to load balance (but not cluster) a collection of Tomcats. We have existing load balancers/failover that can probe with an HTTP requests to see if a service is up. However out Tomcats have a number of webapps on and the start-up/shotdown can take quite a few minutes, so the failover isn't quite working. I want to create a servlet that report whther the Tomcat it is running in if fully operational. Amongst other checks the servelt needs to know 1. That the server is not in the a startup, shutdown stage in it lifecycle. 2. That all of the webapps are running. Stage 1 can be achieved by a creating a LifecycleListener but 2 cannot. Can MBeans provide the ability to do both? If so how? I can find precious little docu on Tomcat's MBeans. Thanks. -- View this message in context: http://www.nabble.com/Load-Balnce-and-failover-for-Tomcat-tp17207372p17207372.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load Balnce and failover for Tomcat
From: Stront [mailto:[EMAIL PROTECTED] 2. That all of the webapps are running. That's webapp-dependent, surely? Tomcat can't determine all the ways in which your application can fail. But it can tell if the app has started; Tomcat's manager displays a list of apps and whether it is running. -- View this message in context: http://www.nabble.com/Load-Balance-and-failover-for-Tomcat-tp17207372p17207537.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load Balnce and failover for Tomcat
From: Stront [mailto:[EMAIL PROTECTED] 2. That all of the webapps are running. That's webapp-dependent, surely? Tomcat can't determine all the ways in which your application can fail. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balnce and failover for Tomcat
I think what the experts are saying is that even if your webapps is started it could be dependent on a large startup operation. Take for example Apache Roller which can take several minutes to rebuild its persistence state and while up will reject requests. The only way to know if the webapps is up is to test it with a request to your webapps. So, the answer will differ for each webapps and the resource to ask will differ as well. Best of luck. Regards, Dave On May 13, 2008, at 7:46 AM, Stront wrote: From: Stront [mailto:[EMAIL PROTECTED] 2. That all of the webapps are running. That's webapp-dependent, surely? Tomcat can't determine all the ways in which your application can fail. But it can tell if the app has started; Tomcat's manager displays a list of apps and whether it is running. -- View this message in context: http://www.nabble.com/Load-Balance-and-failover-for-Tomcat-tp17207372p17207537.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]