You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Li Ma <li...@gmail.com> on 2008/04/15 23:02:24 UTC
test all nodes in cluster
We setup a Tomcat cluster with 3 nodes running behind Apache with mod_jk
module.
Everytime we deploy something to the cluster, we would like to make sure
every single nodes is working. And from time to time, we would like to test
each node to make sure they are healthy too. However, besides of accessing
their IP and 8080 port, is there anyway to test against the Apache server
directly?
For example, is it possible to enter URL like:
http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca1
http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca2
http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca3
To reach each one of the nodes?
Thanks!
--
Li Ma
lima01@gmail.com
http://www.idealtechs.com
Re: test all nodes in cluster
Posted by Ronald Klop <ro...@base.nl>.
We use JMX to check if all sessions are available on all nodes.
This is some info to do that from ant: http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html
It is also very easy to program it from Java.
This has helped us a lot detecting and debugging a session-sync problem a few weeks ago.
Ronald.
On Thu Apr 17 11:34:53 CEST 2008 Tomcat Users List <us...@tomcat.apache.org> wrote:
> Li Ma wrote:
> >> We setup a Tomcat cluster with 3 nodes running behind Apache with mod_jk
> >> module.
> >> Everytime we deploy something to the cluster, we would like to make sure
> >> every single nodes is working. And from time to time, we would like to test
> >> each node to make sure they are healthy too. However, besides of accessing
> >> their IP and 8080 port, is there anyway to test against the Apache server
> >> directly?
> >>
> >> For example, is it possible to enter URL like:
> >> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca1
> >> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca2
> >> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca3
> >> To reach each one of the nodes?
>
> Close to that:
>
> http://www.myserver.com/mywebapp/test.jsp;jsessionid=123456789.tomca1
> http://www.myserver.com/mywebapp/test.jsp;jsessionid=123456789.tomca2
> http://www.myserver.com/mywebapp/test.jsp;jsessionid=123456789.tomca3
>
> assuming that tomca1, tomca2 and tomca3 are the jvmRoutes defined in the
> server.xml of the three nodes.
>
> You can replace 123456789 by an even shorter string, I think even an
> empty string would work, as long as there is a dot before the jvmRoute.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: test all nodes in cluster
Posted by Rainer Jung <ra...@kippdata.de>.
Li Ma wrote:
>> We setup a Tomcat cluster with 3 nodes running behind Apache with mod_jk
>> module.
>> Everytime we deploy something to the cluster, we would like to make sure
>> every single nodes is working. And from time to time, we would like to test
>> each node to make sure they are healthy too. However, besides of accessing
>> their IP and 8080 port, is there anyway to test against the Apache server
>> directly?
>>
>> For example, is it possible to enter URL like:
>> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca1
>> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca2
>> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca3
>> To reach each one of the nodes?
Close to that:
http://www.myserver.com/mywebapp/test.jsp;jsessionid=123456789.tomca1
http://www.myserver.com/mywebapp/test.jsp;jsessionid=123456789.tomca2
http://www.myserver.com/mywebapp/test.jsp;jsessionid=123456789.tomca3
assuming that tomca1, tomca2 and tomca3 are the jvmRoutes defined in the
server.xml of the three nodes.
You can replace 123456789 by an even shorter string, I think even an
empty string would work, as long as there is a dot before the jvmRoute.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: test all nodes in cluster
Posted by Li Ma <li...@gmail.com>.
Anyone can help on my issue?
Li
On Tue, Apr 15, 2008 at 5:02 PM, Li Ma <li...@gmail.com> wrote:
> We setup a Tomcat cluster with 3 nodes running behind Apache with mod_jk
> module.
> Everytime we deploy something to the cluster, we would like to make sure
> every single nodes is working. And from time to time, we would like to test
> each node to make sure they are healthy too. However, besides of accessing
> their IP and 8080 port, is there anyway to test against the Apache server
> directly?
>
> For example, is it possible to enter URL like:
> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca1
> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca2
> http://www.myserver.com/mywebapp/test.jsp?JSESSIONID=123456789.tomca3
> To reach each one of the nodes?
>
>
> Thanks!
>
> --
> Li Ma
> lima01@gmail.com
> http://www.idealtechs.com
--
Li Ma
lima01@gmail.com
http://www.idealtechs.com