Run ergon-tune on the node and in the pod, before deploying and again with
the application running. Fix every WARN, then rerun until none is left, and
gate CI or start-up with --require. Every command, flag and exit code below
is the ergon-tune binary’s own (tune/src/bin/ergon-tune.rs); the check
catalogue is in Host checks.
the boot line and NIC settings (T1, T2, N1) live on the node
at every pod’s start-up
inside the pod
K1–K7 read the pod’s own cgroup and capabilities
with the application running
node and pod
name the CPUs your pinned threads use with --hot; T9’s throttling counters grow only under load, and T15’s task scan sees who runs on the hot CPUs when you check
after every reboot or new image
on the node
runtime fixes (sysctl -w, echo into /sys, ethtool) are gone; the checks cannot tell which settings persist
after every NIC reset
on the node
ENA re-places each queue’s IRQ (T2) and turns adaptive moderation back on (N1)
cargo install ergon-tune
ergon-tune --hot 2-7 --nic ens6 --tcp # on the node
ergon-tune --root /host --hot 2-7 --require # a pod with the node's / at /host
ergon-tune --hot 2-7 --family c7i --busy-poll --all # AWS c7i, busy-polling sockets, verbose
flag
what it does
--hot CPUS
the busy-spinning CPUs (a list such as 2-7); default: the node’s isolated ones. Name them: without hot CPUs the per-CPU checks have nothing to check
--nic NAME or --nic PCI
adds T2, T6 and T20 for that NIC; repeatable. A value with two colons and a dot is a PCI address (0000:00:06.0), else an interface name (ens6)
--family NAME
the AWS instance family, c7i, c7a, c8g or c9g (size optional, c7i.2xlarge): adds T26, which checks the host’s CPU layout and the --hot map against it
--tcp
the app sends latency-sensitive TCP: T21 warns instead of informing. Under --root T21 is UNKNOWN: the tree’s /proc/sys/net need not be the application’s network namespace
--busy-poll
sockets busy-poll: K5 asks for CAP_NET_ADMIN
--component io|md|rt
who runs on the hot CPUs, for T3’s severity (default md)
--root DIR
check a tree mounted from the node (such as /host) instead of /
--all
also print the checks that passed
--require
exit 1 where ERGON_HOST_CHECKS=require would refuse a start
In the pod the K checks run by themselves (they detect the pod). The pod
sees its own cgroup and capabilities; each fix names whether it is in the pod
spec or on the node.
The node’s checks from inside a pod: mount the node’s / read-only at
/host and use --root /host. Name the node’s interface with --nic, not
the pod’s.
Gate start-up: run the same command with --require in an init container
or CI job. In your own code, read ERGON_HOST_CHECKS through
HostCheckPolicy (off, on/warn, require): require refuses a WARN
and an unknown of a check that must prove something about this pod or
process; an unknown of a subsystem the node may lack is reported and allowed
through.