Hitachi

uCosminexus Application Server Expansion Guide


3.9.2 Example of monitoring a schedule queue

This subsection provides an example to explain the monitoring of a schedule queue.

The example in this subsection assumes that the following settings have been specified:

In this example, the threshold of the system processing percentage for stopping the system is set to 70%. Therefore, the right side of the schedule queue monitoring expression (M1 / 100) is 70 / 100 (= 0.7). Therefore, the expression in this example is as follows:

Schedule queue monitoring expression in this example:

(P / Cn - 1) < 0.7

In this case, the CTM daemon terminates abnormally when the left side (P / Cn - 1) is less than 0.7.

This example also assumes that the maximum number of requests that can be contained in the schedule queue is 50. Therefore, 60% of schedule queue filling percentage means 30 queued requests. Therefore, monitoring of the schedule queue starts when the number of queued requests exceeds 30.

The following describes the processing of schedule queue monitoring for each check point:

C1

At check point C1, 31 requests are in the schedule queue. Because the schedule queue filling percentage exceeds 60% (or, 30 requests), monitoring of the schedule queue starts.

C2

At check point C2, P (number of requests processed from C1 to C2) = 22. Therefore, the left side of the schedule queue monitoring expression (P / Cn - 1) is as follows:

(P / C1) = 22 / 31 = 0.7

Because the resulting value (0.7) is equal to the threshold for stopping the system (70%), the CTM daemon does not stop.

Also, the number of queued requests at C2 is 45. Because this number exceeds the queue filling percentage triggering schedule queue monitoring, 60% (or, 30 requests), monitoring of the schedule queue continues.

C3

At check point C3, P (number of requests processed from C2 to C3) = 32. Therefore, the left side of the schedule queue monitoring expression (P / Cn - 1) is as follows:

(P / C2) = 32 / 45 = 0.71

Because the resulting value (0.71) is greater than the threshold for stopping the system (70%), the CTM daemon does not stop.

Also, the number of queued requests at C3 is 35. Because this number exceeds the queue filling percentage triggering schedule queue monitoring, 60% (or, 30 requests), monitoring of the schedule queue continues.

C4

At check point C4, P (number of requests processed from C3 to C4) = 35. Therefore, the left side of the schedule queue monitoring expression (P / Cn - 1) is as follows:

(P / C3) = 35 / 35 = 1

Because the resulting value (1) is greater than the threshold for stopping the system (70%), the CTM daemon does not stop.

Also, the number of queued requests at C4 is 30. Because this number is equal to the queue filling percentage triggering schedule queue monitoring, 60% (or, 30 requests), monitoring of the schedule queue stops.

C5

At check point C5, P (number of requests processed from C4 to C5) = 5. Therefore, the left side of the schedule queue monitoring expression (P / Cn - 1) is as follows:

(P / C4) = 5 / 30 = 0.16

Although this value is less than 0.7 (70%), the threshold for stopping the system, the CTM daemon does not stop because the schedule queue is not monitored at C5.

C6

At check point C6, 31 requests are in the schedule queue. Because the queue filling percentage triggering schedule queue monitoring, 60% (or, 30 requests), is exceeded, monitoring of the schedule queue starts.

C7

At check point C7, P (number of requests processed from C6 to C7) = 2. Therefore, the left side of the schedule queue monitoring expression (P / Cn - 1) is as follows:

(P / C6) = 2 / 31 = 0.06

Because this value is less than 0.7 (70%), the threshold for stopping the system, the CTM daemon terminates abnormally.