Skip to content

2026-11-12: worker-3 evicted CI runner pods for memory 11 times in a day

Kind: reference (incident report)

Severity: warning · Status: open (the soft-eviction net keeps the workers up, but it kills CI jobs many times a day; the runner sizing is the owner's decision #2898) · Resolved by: handed to the owner by the operator agent · Duration: not resolved (alert from 17:01:03 UTC; evictions since 00:40:54, the patch that enables them since 11-11 19:10) · Taskbase task: #2897

Summary

In the 22 hours after the kubelet soft-eviction patch reached worker-3 (#2543, 11-11 19:10 UTC), worker-3 evicted 12 pods for memory: 11 gitea-act-runner pods and one container agent (#2884). worker-1 evicted two runner pods, worker-2 none. Every eviction of a runner pod ended the CI jobs running on it. No worker stalled. That is the design of the owner's decision #2503 working, at a rate far above the "about once a week" at which #2503 said to revisit it. The runbook makes the runner sizing an owner decision, so nothing was changed; the decision is #2898.

Impact

  • Services: Gitea Actions on hetzner-mgmt. Each eviction took one of the two runner pods (two of the four job slots) away until its replacement started, and failed the jobs it was running. Nothing else on the workers was evicted or restarted in the period, apart from the container agent in #2884.
  • Users: CI jobs of the repositories that run on the hetzner-mgmt runners failed and had to be re-run, up to two per eviction. How many jobs were lost is not in the record (see Open questions).
  • Data: none. The runner pods hold no persistent data.
  • Duration: the evictions began at 00:40:54 and continue. The alert fired at 17:01:03 and keeps firing until worker-3's 24-hour count drops to 10.

Timeline

All times UTC.

Time Event Source
11-04 20:36 Owner decision #2503: keep two jobs per runner pod plus the soft-eviction net (#2502), revisit above about one runner eviction a week Taskbase #2503
11-11 19:10 Soft-eviction patch (memory.available: 2Gi) applied to worker-3; worker-1 19:21, worker-2 19:32 #2543, #2554
11-12 00:40:54 First memory eviction on worker-3 (gitea-act-runner-55659f65d5-mhsmm); not counted by increase() pod condition DisruptionTarget
01:30:19, 02:32:05, 07:25:23 Runner pods rmb77, xxhdc, 7fswg evicted on worker-3 pod conditions
09:01:36, 11:02:51 Runner pods xwkvv, jwqrv evicted on worker-1 pod conditions
11:10:35, 11:26:28, 11:56:44, 12:12:03, 13:12:16 Runner pods wwcc7, lp5qz, 5c94t, 2wq49, 8dlnq evicted on worker-3 pod conditions
14:10:53 emilia-container-agent-7bbb6cc7d4-c2mcd evicted on worker-3 (#2884) pod condition
17:00:45 Runner pod 7jnfh evicted on worker-3, the 10th counted in 24 hours (the 11th on worker-3, with mhsmm) pod condition
17:01:03 Detected: NodeMemoryEvictionsFrequent (warning) for worker-3 Alertmanager
17:02:03 Incident task #2897 created Taskbase
17:29:47 Runner pod gk6dz evicted on worker-3 pod condition
~17:30–17:40 operator agent checked the alert, the evicted pods, the node and Prometheus, read-only; raised #2898 this report

Root cause

Two CI jobs run on one runner pod (capacity: 2), inside its dind container, which requests 2Gi and may use 4608Mi (Memory and the node). A cx33 worker cannot hold a runner pod at its two-job peak next to its other pods, and #2503 chose to let the kubelet's soft eviction (memory.available below 2Gi for 10 s) evict the runner pod rather than add capacity or run one job per pod. Every runner pod's eviction message names dind over its 2Gi request, at 2.1–3.3 GiB (2171500Ki to 3262692Ki), with the node's available memory at 1.65–1.98 GiB.

worker-3 takes most of them. The runner Deployment prefers nodes other than worker-2, so its two pods run on worker-1 and worker-3. At the check, the other pods on worker-3 (Harbor, Keycloak, Mattermost and Taskbase's database among them) had a working set of 2.29 GiB, against 1.61 GiB on worker-1, so the runner pod on worker-3 reaches the threshold with less of its own memory. The replacement of an evicted pod was scheduled on worker-3 again each time: the 11 evicted pods there followed one another, while nhdtt ran on worker-1 for the last 6.5 hours. Why the scheduler chose worker-3 each time was not checked.

The rate is higher than the replay predicted (4–9 evictions a day across the workers, about three quarters of them runner pods): 14 in 22 hours, 13 of them runner pods. That is about 100 runner evictions a week (13 × 168 / 22), against #2503's "about once a week". No worker stalled in the period, so the net does what it was set up for; the cost is in killed CI jobs.

What the agent did

All commands were read-only and named --context admin@mgmt-cluster. Nothing in the cluster or in the runner configuration was changed.

  1. kubectl get --raw "$AM/api/v2/alerts" through the Alertmanager Service proxy (Read Alertmanager and Prometheus on a cluster): NodeMemoryEvictionsFrequent 9b345883333ac39c (node=worker-3) was active and not silenced, and every alert's cluster was hetzner-mgmt. Also active: KubeNodeEviction (worker-3), PodEvicted (#2884), NodeHighMemoryUsage (control plane); five CIRunnerMemoryEvicted were suppressed by InfoInhibitor.
  2. The runbook's read-only checks:
  3. kubectl get pods -A --field-selector=status.phase=Failed,spec.nodeName=worker-3: eleven evicted gitea-act-runner pods, each naming dind as in the message above, and emilia-container-agent-7bbb6cc7d4-c2mcd, naming its runner container over its 1536Mi request (#2884).
  4. kubectl describe node worker-3: MemoryPressure False, memory requests 5584Mi (77 %).
  5. kubectl top pods: Metrics API not available on this cluster; Prometheus was used instead.
  6. Prometheus through the Service proxy:
  7. max by (node, eviction_signal) (kubelet_evictions): worker-3 memory.available 12, worker-1 2 (counters since the kubelet restart that applied the patch).
  8. max by (node) (increase(kubelet_evictions{eviction_signal=~"memory.available|allocatableMemory.available"}[1d])): worker-3 11.0, worker-1 1.0.
  9. min_over_time(node_memory_MemAvailable_bytes[22h]): worker-1 0.95, worker-2 1.75, worker-3 0.92 GiB.
  10. max_over_time((time() - timestamp(node_memory_MemAvailable_bytes))[1d:15s]) > 60 and NotReady minutes over a day: none, so no worker stalled.
  11. increase(node_vmstat_oom_kill[1d]): 2 on worker-1, 0 elsewhere.
  12. dind working set (max of the pods): above 2 GiB for 83 minutes and above 3 GiB for 4 minutes in 22 hours.
  13. kubectl -n gitea get deploy gitea-act-runner -o json: 2 replicas, preferred node affinity away from worker-2, PriorityClass ci-runner.
  14. Followed the runbook's roll-forward for "mostly CI runner pods": did not change the runner sizing, the worker type or the threshold, which are owner decisions. Raised the decision #2898 for the owner with the counts and four options, and noted on the 7-day measurement #2554 that #2898 exists, so it adds its numbers there instead of raising a second decision.
  15. Did not delete the evicted Pod objects: they are the record of the evictions, and the alert counts the kubelet's counter, not the pods.
  16. This report.

Resolution and verification

Not resolved. At the check, both runner pods were Running (ll4v5 on worker-3, nhdtt on worker-1), worker-3 reported MemoryPressure False, and no worker had stalled in 24 hours. The evictions will go on at about this rate until the owner decides #2898.

Follow-ups

  • 2898: the owner's decision that revisits #2503: one job per runner pod (recommended), more

    capacity, keeping #2503 and raising this alert's threshold, or waiting for #2554.
  • 2554: the 7-day measurement after the patch (from 2026-11-18 19:40 UTC), which adds its numbers to

    #2898.

References

Open questions

  • How many CI jobs the 13 runner evictions killed, and in which repositories. The runner pods' logs went with them; Gitea's job records would tell, and #2554 reads them.
  • Whether the CI load on 11-12 was unusual (a Renovate or release burst) or the usual level, which decides whether the replay's 4–9 a day was too low. #2554's week will show it.