Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Troubleshooting

First, check the node. Run ergon-tune on it, or in a pod that mounts the node’s /, and fix every WARN:

ergon-tune --hot 2-7 --nic ens6               # on the node; --tcp, --busy-poll as the app does
ergon-tune --root /host --hot 2-7 --require   # in a pod with the node's / at /host

Each finding prints its fix. Latency symptoms the host causes (loop gaps, timer ticks, interrupts, page faults, quota) map to a check in ergon-tune: symptom, check, fix. The rest:

Aeron

symptomcheckfix
Aeron::new or start fails: no driveris the driver running; does $AERON_DIR/cnc.dat exist in the app’s containerthe same AERON_DIR in both containers, on a volume both mount; retry with a deadline while the driver starts
offer returns NotConnected and stays therepublication.is_connected(); the subscriber’s channel and stream idthe same channel and stream id on both sides; on UDP, endpoint= is the receiver’s address and its UDP port is open between the hosts
offer returns BackPressured for longdoes the subscriber poll every turn; ergo-aeron streams names the subscriber furthest behindpoll it every turn; a larger term-length on the channel only buys time
the driver does not start with AERON_DIR on hugetlbfsT23AERON_FILE_PAGE_SIZE=2097152 and AERON_TERM_BUFFER_SPARSE_FILE=false
Aeron’s CPU affinity settings have no effectT22the Aeron 1.54 names: AERON_THREAD_AFFINITY_USE_CPUSET_OFFSETS, AERON_THREAD_AFFINITY_FAIL_ON_VALIDATION_ERRORS
the Aeron directory is on a diskT4/dev/shm, a memory emptyDir, or a sized 2 MiB hugetlbfs
a crash after closingwas a handle used after its publication, subscription or client closedclose in order: claims and images, then publications and subscriptions, then the client

The loop thread

symptomcheckfix
a helper thread runs on the loop’s CPUps -L -o tid,psr,comm -p <pid>, taskset -pc <tid>create every thread before the loop pins itself (start-up order)
T1, T8 and T2 report nothing for the loopwas the loop’s CPU in the HotSetpin the thread first, then name its CPU in the HotSet
T19 warnings: the loop takes page faultsFaultWatchmlockall (CAP_IPC_LOCK) and write every buffer once before the loop; T3, T5, T14, T17 on the node
millisecond stalls; nr_throttled growsT9, ThrottleWatcha Guaranteed pod, whole CPUs, the static CPU manager (checklist)
stalls when the log is busydoes the loop format or write log lines itselfa bounded non-blocking queue to a logging thread

Kubernetes

symptomcheckfix
every pod labelled ergon.io/latency: hot is refusedthe plugin’s log; curl <plugin-pod-ip>:9466/readyzthe kubelet config mounted (hostContract.kubeletConfig); on EKS AL2023 also hostContract.kubeletConfigDir.enabled=true (shared CPUs)
a hot pod is refused after the node ran fine (reason node-contract)the plugin’s log names the drift: IRQs, the reserved set, a quota, isolationfix the node; on EKS a NIC attached after boot puts its IRQs on the shared CPU: move them to the IRQ CPU
the container exits with SIGILL at startthe image’s CPU tag against the node’s CPUbuild for a baseline CPU (x86-64-v2, armv8.2-a), or select nodes by instance family for a CPU-specific image (build for the CPU)
a K check warns (K1–K7)the finding says pod spec or nodeas the finding says (what it checks)
a DPDK process starts without its NICT24the NIC device plugin (not shipped here) must inject the three RUSTERON_DPDK_SENDER_* keys
latency good after boot, worse later (AWS)T2, N1an ENA reset undid them: re-apply from a link-event hook (interrupts and the NIC)