3.1.5 Monitoring interval set when using the Monitoring Files job
This subsection explains how to estimate the monitoring interval time to be set when using Monitoring Files jobs. If you execute many Monitoring Files jobs at the same time and with the same monitoring interval in JP1/AJS3, the processing for all the jobs might not finish within the set monitoring interval. If you continue operation under these circumstances, file updating will not be monitored correctly at the set interval time, so that a longer time than the monitoring interval might elapse between the updating of a monitored file and the generation of an event. You must therefore calculate the monitoring interval time to be set when multiple Monitoring Files jobs are executed by using the following estimation formula.
- Organization of this subsection
(1) Monitoring interval time estimation formula
Select the larger of the values obtained with the following estimation formulae as the monitoring interval time:
- Estimation formula 1 = (A x number-of-executed-jobs) + (sum-of-B)
- Estimation formula 2 = (C x number-of-executed-jobs) + (sum-of-D) + (E x peak-number-of-event-occurrences#) + (sum-of-F-when-number-of-event-occurrences-is-at-peak)
- #
-
The peak number of event occurrences is the maximum number of events occurring per minute.
When the full name of the monitored file is specified |
When a wildcard (*) is used in the specification of the monitored file |
|
---|---|---|
(at registration) |
A Approx. 0.1 seconds |
B 0.1 seconds + 0.2 seconds added for each multiple of 10 monitored files |
(during monitoring) |
C Approx. 0.02 seconds |
D 0.02 seconds + 0.2 seconds added for each multiple of 10 files matching the wildcard# |
(when events occur) |
E Approx. 0.9 seconds |
F 0.9 seconds + 0.2 seconds added for each monitored file matching the condition within the monitoring interval |
- #
-
Estimate the number of files matching the wildcard as the maximum number of files being monitored.
- Note
-
Values vary depending on the hardware you use.
(2) Example estimation of monitoring interval time set for Monitoring Files jobs
This example is based on the following prerequisites.
-
There are 97 Monitoring Files jobs in which the target files are specified by full name.
-
There are three Monitoring Files jobs (X, Y, and Z) in which the target file names are specified by wildcard (*).
-
The peak number of events is 50 for the Monitoring Files jobs with target files specified by full name.
-
A maximum of 35 files exist in the directory being monitored by job X, and 20 events occur within the monitoring interval.
-
A maximum of five files exist in the directory being monitored by job Y, and two events occur within the monitoring interval.
-
A maximum of nine files exist in the directory being monitored by job Z, and nine events occur within the monitoring interval.
- When estimation formula 1 is applied:
-
(0.1 x 97) +
(0.1 + 0.2 x (35 / 10)) + (0.1 + 0.2 x (5 / 10)) + (0.1 + 0.2 x (9 / 10)) = 9.7 + 0.8 + 0.2 + 0.28 = 10.98 (seconds)
Round up to 11 seconds.
- When estimation formula 2 is applied:
-
(0.02 x 97) + (0.02 + 0.2 x (35 / 10)) + (0.02 + 0.2 x (5 / 10)) + (0.02 + 0.2 x (9 / 10)) + (0.9 x 50) + (0.9 + (0.2 x 20)) + (0.9 + (0.2 x 2)) + (0.9 + (0.2 x 9)) = 1.94 + 0.72 + 0.12 + 0.2 + 45 + 4.9 + 1.3 + 2.7 = 56.88 (seconds)
Round up to 57 seconds.
In this example, estimation formula 2 gives the larger value, so you should set a value of 57 or higher for the monitoring interval time.