Disk-io monitoring mode of Docker container based on LXC

Source: Internet
Author: User

Blog Original
Amway an introductory article on the neural network of a foreign Daniel I translated

Take the container d-mcl-30_struc_test-n-2 on a test machine as an example, the container ID is 373200daed7b, and the following information can be seen through Docker inspect:

The highlighted part of the figure is a path that we map from the host to the container, and let's look at the device that corresponds to the path

View the true path of this device (because it may be a soft link) by using the following method

Find the device number of the mounted device by using the following method:

Container mount Path The IO of disk device can be obtained by monitoring the following file

This file records the current number of bytes written/read by this container in this device, through the monitoring of this file, two times the difference of the monitored values, and then divided by the sampling interval length to get disk-iops attention

If the Nsenter command enters a container using the DD command for disk read-write testing, the test-generated read-write is not reflected in the file that is said here. You need to go through the Docker attach command to

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.