VMmanager 5 KVM: Administrator guide
Do you make friends with the documentation?
Share your opinion and complete a small poll
Take a survey

Cluster load


A cluster in VMmanager is a group of physical servers where virtual machines are running.

To viewtheclusternodestatistics navigate to Statistics→ Cluster load.

Generate a report



  • Period — select a period:
    • previousday;
    • current day;
    • current week;
    • current month;
    • current year;
    • previous week
    • previous month;
    • previous year;
    • week;
    • month;
    • quarter;
    • half-a-year;
    • year;
    • any period;
    • the whole period.
  • Cluster nodes — select a cluster node to display the statistics.

You can monitor the load on each virtual machine based on the following resources:

    • incoming traffic, GiB;
    • outgoing traffic, GiB;
    • input-output operations, IOPS;
    • CPU, %;
    • RAM, %. 
Note

Per-minute statistics is kept for 5 days. Per-hour statistics is kept for one month and 3 days. Per-day statistics is kept for 2 years. When the specified periods expire, the data will be deleted.

Graphs for a random period are generated based on a per-hour statistics.

How the panel collects statistics

Statistics are collected using periodic tasks performed via cron: 

Example of crontab commands
## VMmanager periodic tasks (1 minute)
* * * * *    /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr periodic period=1 >/dev/null 2>&1
## VMmanager periodic tasks (5 minutes)
*/5 * * * *    /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr periodic period=5 >/dev/null 2>&1
## VMmanager periodic tasks (hourly)
3 * * * *    /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr periodic period=60 >/dev/null 2>&1
## VMmanager periodic tasks (daily)
7 0 * * *    /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr periodic period=day >/dev/null 2>&1

Raw statistics is kept in the file "/usr/local/mgr5/var/stat/raw" and is updated every 5 minutes. Once an hour the control panel processes the raw statistics and delete it from the directory. The archive of the raw statistics is kept in "/usr/local/mgr5/var/stat/mon/mainstat/".

Note
You can delete the archive of raw statistics only by means of the operating system.

Incoming and outgoing traffic

The information is collected from the /proc/net/dev file. Statistics files are copied to /var/stat/raw_bandwidth.

Receive Bytes — incoming traffic.

Transmit Bytes — outgoing traffic.

The main network interface of the cluster node is selected as the interface automatically.

Note
Network statistics are collected from physical and bonding interfaces. Statistics are not collected from virtual network interfaces.

CPU 

The information is collected from the virNodeGetCPUStats function of the libvirt library (the virsh nodecpustats command on the cluster node).

The CPU usage is calculated as follows:

(user+system) / (user+nice+system+iowait) * 100
View details

I/O operations

The information is collected from the /proc/diskstats file.

The usage is calculated as follows:

NumReads+NumWrites
View details

The system calculates the data from all hard drives.

RAM

The information is collected from the virNodeGetMemoryStats function (the virsh nodememstats command).

The usage is calculated as follows:

MemUsed / MemTotal * 100
View details