Hitachi

JP1 Version 12 JP1/Performance Management - Remote Monitor for Virtual Machine Description, User's Guide and Reference


1.7.3 Monitoring the CPU resource

This subsection explains how to monitor the CPU resource of a Docker container.

Organization of this subsection

(1) Overview

Monitoring CPU performance information enables you to understand performance trends of Docker containers.

By monitoring CPU performance data, you can detect Docker containers with high CPU usage rate, and thus you can take appropriate corrective action.

The following two records are used to monitor the CPU resource. For details about records, see 5. Records.The PI and PI_HCI records that indicate the CPU resource of the physical server are not supported.

  1. PI_VI record

    This record is used to monitor the performance data of the CPUs that are being used by each Docker container.

  2. PI_VCI record

    This record is used to monitor the performance data of the CPU cores that are being used by each Docker container.

The following figure shows the range of performance data collected in each record.

Figure 1‒68: Range of performance data collected in each record

[Figure]

(2) Monitoring examples

Using CPU resource monitoring on virtual machines container1 through container2 as an example, this subsection explains the factors that cause insufficient CPU resources, and how to solve this problem. The following figure shows the items monitored here and the flow of actions to take.

Figure 1‒69: Monitored items and flow of actions

[Figure]

(a) Example of monitoring the CPU usage rate for Docker containers

You can check the CPU usage rate for Docker containers in the Used % field of the PI_VI record.

An example of monitoring is shown below.

Figure 1‒70: Example of monitoring the CPU usage rate for Docker containers

[Figure]

Monitoring template report to be checked

VM CPU Trend

In this example, the CPU usage rate of container1 is high. If the performance of a Docker container has degraded due to high CPU usage rate, review the number of allocated CPU resources and other configuration information. If the problem still cannot be solved, consider whether you can add a physical CPU that runs a Docker container or change the physical server.