6.9. Viewing Resource Usage on a Node

On a node host, use standard tools such as free and vmstat to report memory usage. Note that tools such as vmstat, top, and uptime report the number of processes waiting to execute. These tools might be artificially inflated, because cgroups restrict each gear to a specific time slice rather than time-sharing between processes. This restriction enables OpenShift Enterprise to provide consistent CPU availability for each gear, but also means that active processes on gears may wait while the CPU is allocated to a less active gear. As a result, reported load average may routinely be close to the number of active gears.
The oo-idler-stats command returns a status summary of all the gears on a node host.

Example 6.14. Returning a Status Summary of Gears on a Node Host

# oo-idler-stats

1 running, 1 idled, 0 half-idled for a total 2 of 3 (66.67 %)
This example shows three gears on the node: one is running, one is idle, and one is stopped. The half-idled state is deprecated and always returns 0.