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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.