You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/02/09 12:42:16 UTC

DO NOT REPLY [Bug 46676] New: Configurable test request for Watchdog thread

https://issues.apache.org/bugzilla/show_bug.cgi?id=46676

           Summary: Configurable test request for Watchdog thread
           Product: Tomcat Connectors
           Version: 1.2.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_jk
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: gerhardus.geldenhuis@gmail.com


It would be really great to have a configurable thread to test for the
availability of a node in a cluster by the watchdog thread. The ping test is
not always enough and in a production environment you don't really want
production threads to be used as a way of testing whether a node is available
or not. 

In our environment we use the web interface of modjk programatically to
stop/start (remove/add to cluster) tomcat nodes in a load balanced cluster
while they are upgraded. If the watchdog thread were extended the following
additions to the web interface would be handy:
A function to test a node using the configured request.
A function to enter a custom url test string to test the node.

Furthermore if the test url could be set dynamically without needing a config
reload it would be very handy to do dynamic differentiated testing during the
course of a day.

As a start a url and search string to match on the page would probably be
enough.
Eg
TestUrl='localhost:/myapp/deployinfo.jsp'
TestString='hello world'


Maybe in the future one could extend this even more to submit xml(soap,
something else) to a server and have a seperate parser/program to evaluate the
result. This is probably beyond the scope of modjk but I thought it good to
mention non the less for any interesting other ideas it might provoke.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46676] Configurable test request for Watchdog thread

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46676





--- Comment #1 from Gerhardus Geldenhuis <ge...@gmail.com>  2009-02-09 03:46:47 PST ---
Original email from tomcat-users mailing list that prompted report:

Ping tests, whether there is something able to still process AJP on the 
other side of the connection. A configurable request would be able to 
talk to the application, so one could detect, whether it is still 
deployed, and if the request would be handled by an intelligent servlet 
it could respond with some sort of application layer health status.

Worth filing an enhancement request, since Mladen put the Watchdog 
thread into 1.2.27, we can easily add more logic of that type.

Regards,
Rainer


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 46676] Configurable test request for Watchdog thread

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46676

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
We don't need multiple issues tracking the same request.

I'd normally close the newer issue as a duplciate but since the newer issue has
a patch it is better to leave it open. I am therefore closing this request as a
duplciate of the new issue that has the patch.

*** This bug has been marked as a duplicate of bug 54621 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 46676] Configurable test request for Watchdog thread

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46676

--- Comment #2 from Alan F <al...@igmarkets.com> ---
Maybe you're not interested in this anymore, but I wrote a patch to do this.
See here:

https://issues.apache.org/bugzilla/show_bug.cgi?id=54621

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org