A VirtualMachineInstance (VMI) reported a guest CPU run‑queue length greater than 20 runnable or uninterruptible threads within the last scrape window (120s), indicating severe CPU contention.
Follow the below steps with extra focus on:
kubevirt_vmi_guest_vcpu_queue{namespace="$NS",name="$VM"}
rate(kubevirt_vmi_cpu_usage_seconds_total{namespace="$NS",name="$VM"}[2m])
virtctl console <vm>
→ top -H
or pidstat -u 1
oc get vmi $VM -ojsonpath='{.spec.domain.cpu}'
| Horizon | Action | |———-|——————————————————————| | Immediate| Prioritise: live-migrate VM; hot-plug vCPUs; stop or throttle | | | hot threads. | | Short term| Raise vCPU limit or split workload across additional VMs. | | Long term| Adjust placement rules; add autoscaling tied to run-queue length.|
If you cannot resolve the issue, see the following resources: