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, %.
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:
## 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/".
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.
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
I/O operations
The information is collected from the /proc/diskstats file.
The usage is calculated as follows:
NumReads+NumWrites
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