Collecting health and capacity information

A standard way to get information about CPU, memory, and other activity on your system is by examining info in /proc. In addition, an array of tools is available in Linux to obtain specific pieces of information. The sysstat package contains many of them, for example, iostat to collect CPU and I/O statistics, pidstat to collect health statistics for each process, and sar and sadc to collect similar statistics as cron jobs. Just as a sample, running iostat on a VM running the entire trade network and the chaincode yields the following CPU info and I/O statistics for the two virtual hard drives:

Linux 4.4.0-127-generic (ubuntu-xenial) 05/28/2018 _x86_64_ (2 CPU) avg-cpu: %user %nice %system %iowait ...

Get Blockchain Development with Hyperledger now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.