3.9.1 Overview of monitoring requests remaining in a schedule queue
The schedule queue monitoring function monitors the number of requests in a schedule queue. If the number of queued requests exceeds a certain percentage, the CTM daemon outputs a message and terminates abnormally.
A schedule queue is monitored as follows:
-
The schedule queue monitoring function starts when the preset threshold percentage value of used capacity of the queue is exceeded.
-
When the function starts, it checks the filling status of the schedule queue at the specified time interval.
-
When the function performs a check, if the following expression is true, the CTM daemon terminates abnormally:
- Schedule queue monitoring expression:
-
(P / Cn - 1) < (M1 / 100)
P: Number of requests processed during the period from the previous check to the current time
Cn - 1: Number of queued requests at the check before the last check (Cn)
M1: Threshold for stopping the system (system processing percentage)
To use the schedule queue monitoring function, specify the -CTMWatchQueue option when executing the ctmstart command. For details about the ctmstart command, see ctmstart (start CTM daemon) in the uCosminexus Application Server Command Reference Guide.