[monit-dev] patch proposals: startup timeout, protocol mysql 4.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[monit-dev] patch proposals: startup timeout, protocol mysql 4.1

hash_monit
Hi,


during warmup of a monitored process monit should ignore all connection
checks. Tomcat, for example, depending on how many webapps are to be
deployed, requires some time to bring up the listening port and to
answer to monit's queries. Monit will restart tomcat over and over
unless the timeout is set high enough. Though, in production use, we
don't want to use large timeouts.
When applying "monit-start_timeout.patch" check_process will return TRUE
while the process uptime is still below the start timeout.

One of our requirements is to monitor sockets and to check their file
permissions. So we need monit to handle sockets just as regular files.
The file "monit-socket.patch" is for that purpose.

When trying to monitor mysql-proxy you'll probably encounter a "2007
protocol mismatch" error since mysql-proxy does not support the old
mysql4.0 protocol monit uses. Also, a username is required upon
connection. "monit-mysql41.patch" makes monit use the mysql4.1 protocol
which is valid up to recent mysql releases. Monit connects as user "M"
without password, but this mysql user doesn't need to exist.


Kind regards,

Philippe

_______________________________________________
monit-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/monit-dev

monit-mysql41.patch (2K) Download Attachment
monit-socket.patch (2K) Download Attachment
monit-start_timeout.patch (576 bytes) Download Attachment