Difference between revisions of "Monitoring Cluster-Enabled Quartz Instances"
From AgileApps Support Wiki
imported>Aeric (Created page with "===Monitoring Cluster--Enabled Quartz Instances=== ====Preparation==== ====Monitoring==== Download the [{{DOCHOST}}/files/monitor_quartz.pl monitor_quartz.pl] (Perl) script fro…") |
imported>Aeric |
||
Line 1: | Line 1: | ||
===Monitoring Cluster--Enabled Quartz Instances=== | ===Monitoring Cluster--Enabled Quartz Instances=== | ||
;Preparation: | |||
:* Add these lines to the <tt>quartz.properties</tt> file: | |||
<syntaxhighlight lang="java" enclose="div"> | |||
org.quartz.jobStore.isClustered = true | |||
org.quartz.jobStore.clusterCheckinInterval = 20000 | |||
</syntaxhighlight> | |||
;Monitoring: | |||
Download the [{{DOCHOST}}/files/monitor_quartz.pl monitor_quartz.pl] (Perl) script from the downloads area, and run it on your server. | :* Download the [{{DOCHOST}}/files/monitor_quartz.pl monitor_quartz.pl] (Perl) script from the downloads area, and run it on your server. | ||
;How it Works: | |||
:The lines in the properties file cause quartz to put an entry into the relationals.QRTZ_SCHEDULER_STATE table in the database. The script checks the timestamp to verify that the last stamp was within 5 minutes. (Quartz should be running once a minute. If it hasn't run in five minutes, it is considered to be down.) |
Revision as of 00:41, 19 July 2011
Monitoring Cluster--Enabled Quartz Instances
- Preparation
-
- Add these lines to the quartz.properties file:
<syntaxhighlight lang="java" enclose="div"> org.quartz.jobStore.isClustered = true org.quartz.jobStore.clusterCheckinInterval = 20000 </syntaxhighlight>
- Monitoring
-
- Download the monitor_quartz.pl (Perl) script from the downloads area, and run it on your server.
- How it Works
- The lines in the properties file cause quartz to put an entry into the relationals.QRTZ_SCHEDULER_STATE table in the database. The script checks the timestamp to verify that the last stamp was within 5 minutes. (Quartz should be running once a minute. If it hasn't run in five minutes, it is considered to be down.)