2026-11-14: miki-container-agent evicted for memory three times in 31 minutes, three agent runs lost¶
Kind: reference (incident report)
Severity: warning · Status: open (each replacement pod was Ready 14 seconds after its eviction, but the next heavy run is evicted the same way; the capacity choice is the owner's decision #2998) · Resolved by: handed to the owner by the operator agent · Duration: not resolved (evictions at 12:59:15, 13:13:51 and 13:30:23 UTC; alerts from 13:04:33) · Taskbase task: #2995
Summary¶
The kubelet's soft memory eviction (2Gi, #2543) evicted miki-container-agent three times in
31 minutes: on worker-1 at 12:59:15, on worker-3 at 13:13:51 and on worker-1 again at 13:30:23
UTC. Each time the agent's runner container went from about 600Mi to about 3.2 GiB in two
minutes against its 1Gi request, and it was by far the pod most over its request, so the kubelet
chose it. Each eviction killed the run in progress. Each replacement was Ready 14 seconds later, on
the other worker the agents may use, because the evicting node had MemoryPressure. The first
replacement shared worker-3 with emilia-container-agent, and was evicted there: the risk that the
first version of this report predicted. The PodEvicted runbook's steps end at a request that does
not fit on any worker, so no change was made, and the capacity choice is the owner's decision #2998.
Impact¶
- Services: the
miki-container-agentrunner (organizations 10 and 11) was down for about 14 seconds after each eviction. Nothing else was evicted or restarted. - Users: three agent runs ended without a result: the one in progress at 12:59:15, the one started on the replacement at about 13:08 (its grow to the active request at 13:08:14), and run 6478 of task 2982, claimed at 13:23:37. The runner's logs went with the first two pods, so their tasks are not known (see Open questions).
- Data: none. The pods hold no persistent data; the runner state is rebuilt on start.
- Duration: the evictions continue while heavy runs come in. Each alert fired about five minutes
after its eviction, by design, and keeps firing until 6 hours after its own eviction, whatever
the cause:
6c7c414ed5aa326f(vx26x) until about 18:59,e60722aa9f73315d(x9ft7) until about 19:14 and0c890ff5c08cd2be(4qq44) until about 19:30.
Timeline¶
All times UTC, 2026-11-14.
| Time | Event | Source |
|---|---|---|
| 09:49:40 | miki-container-agent-d95755958-vx26x started on worker-1 (ReplicaSet d95755958, the rollout of #2992) |
pod status.startTime, ReplicaSet creationTimestamp |
| 12:51–12:56 | The runner's working set was 253–584Mi | Prometheus container_memory_working_set_bytes{container="runner"} |
| 12:57:00 | 723Mi; no pod on worker-1 above its memory request | Prometheus |
| 12:58:00 | 1495Mi | Prometheus |
| 12:58:54 | worker-1 NodeHasInsufficientMemory (MemoryPressure) |
node event |
| 12:59:00 | Runner at 3440Mi; worker-1 MemAvailable down to 1680Mi (3942Mi at 12:57) |
Prometheus |
| 12:59:10 | Pods on worker-1 above their memory request: this pod +2505Mi, gitea/gitea-act-runner-754fd96f4f-4t2js +53Mi |
Prometheus |
| 12:59:15 | Eviction 1, worker-1: "The node was low on resource: memory. Threshold quantity: 2Gi, available: 1777776Ki. Container runner was using 3317100Ki, request is 1Gi, has larger consumption of memory." | event Evicted |
| 12:59:27 | Replacement miki-container-agent-d95755958-x9ft7 created and scheduled on worker-3, next to emilia-container-agent-67868bcb95-wsbtc |
pod creationTimestamp, event Scheduled |
| 12:59:29 | x9ft7 Ready |
pod condition Ready |
| 13:04:22 | worker-1 MemoryPressure False |
node condition |
| 13:04:33 | Detected: PodEvicted 6c7c414ed5aa326f (warning) fired |
Alertmanager |
| 13:05:33 | Incident task #2995 created | Taskbase |
| 13:08:14 | x9ft7 grown to its 1Gi active request: a run started |
event ResizeCompleted, kube_pod_container_resource_requests |
| 13:09–13:12 | x9ft7's runner at 220–636Mi; worker-3 MemAvailable 2090–3704Mi. emilia idle throughout (512Mi request, 16–151Mi used) |
Prometheus |
| 13:09:43 | The first version of this report committed, calling x9ft7 Ready and the incident mitigated |
PR #1453 |
| 13:13:00 | x9ft7's runner at 1704Mi, +395Mi over its request, the only pod on worker-3 over its request |
Prometheus |
| 13:13:45 | +1742Mi, still the only pod on worker-3 over its request | Prometheus |
| 13:13:46 | worker-3 NodeHasInsufficientMemory (MemoryPressure) |
node event |
| 13:13:51 | Eviction 2, worker-3: "Threshold quantity: 2Gi, available: 1498048Ki. Container runner was using 3312208Ki, request is 1Gi, has larger consumption of memory." | event Evicted |
| 13:14:02 | Replacement miki-container-agent-d95755958-4qq44 scheduled on worker-1 |
event Scheduled |
| 13:14:05 | 4qq44 Ready |
pod condition Ready |
| 13:19:02 | worker-3 MemoryPressure False |
node event NodeHasSufficientMemory |
| 13:19:33 | PodEvicted e60722aa9f73315d (x9ft7) fired; #2995 got a comment (13:20:33) |
Alertmanager, Taskbase |
| 13:23:37 | 4qq44 claimed task 2982 (run 6478) and grew to 1Gi at 13:23:40 |
runner log, event ResizeCompleted |
| 13:28:00–13:30:00 | 4qq44's runner 663Mi → 1307Mi → 3034Mi; worker-1 MemAvailable 3909Mi → 2018Mi |
Prometheus |
| 13:30:15 | Pods on worker-1 above their request: 4qq44 +2172Mi, the CI runner pod +62Mi |
Prometheus |
| 13:30:23 | Eviction 3, worker-1: "Threshold quantity: 2Gi, available: 1839404Ki. Container runner was using 3415800Ki, request is 1Gi, has larger consumption of memory." worker-1 MemoryPressure |
event Evicted, node event |
| 13:30:35 | Replacement miki-container-agent-d95755958-wflc6 scheduled on worker-3, next to emilia again |
event Scheduled |
| 13:30:37 | wflc6 Ready |
pod condition Ready |
| 13:35:29 | worker-1 MemoryPressure False |
node condition |
| 13:36:03 | PodEvicted 0c890ff5c08cd2be (4qq44) fired |
Alertmanager |
| 13:37:44 | Owner decision #2998 raised | Taskbase |
| ~13:07–13:40 | operator agent checked the alerts, the pods, the nodes and the memory history, read-only |
this report |
Root cause¶
The same as #2884: agent runs use far more memory than the container agents request while working. The scheduler places an agent by its 512Mi idle request, the resizer grows it to its active request (miki: 1Gi) during a run, and the run can use up to the 4Gi limit whatever it requests (Idle and active size). Three runs in a row rose by about 2.7 GiB in two minutes, five to seven minutes in, which took the node's available memory below the kubelet's 2Gi soft threshold. Each time the agent was the pod most over its request (+1742 to +2505Mi; the only other was a CI runner at +53 to +62Mi), so the kubelet evicted it, as hetzner-mgmt worker memory eviction expects for about one eviction in six. Three evictions of the same agent in 31 minutes, at the same size and the same point in the run, suggest one heavy task retried, or a few like it; task 2982's run was the third, and the first two are not known.
The second eviction was on worker-3 while both agents were there, which is the risk that the first version of this report named. It was not the two-runs-at-once case: emilia stayed idle (512Mi request, 16–151Mi used). It was the other one, that worker-3 has less memory free. Before the run grew, worker-3 had 2.1–2.7 GiB available against 3.9–4.4 GiB on worker-1, because it also carries the Harbor, Keycloak, Mattermost and Taskbase databases and a CI runner pod (#2898). So the same run size (3312208Ki against 3317100Ki and 3415800Ki on worker-1) evicted the agent there with less growth (+1742Mi over its request against +2172 and +2505Mi).
miki's runner, measured over 2 days to 13:10, counting only samples above 600Mi (active) on pod
d95755958-vx26x: p50 981Mi, p95 1543Mi, p99 2808Mi, peak 3440Mi (the first eviction). The second
and third runs peaked at 3234Mi and 3335Mi in the samples. That matches #2884's 7-day numbers for
both agents (p99 2.5–2.7 GiB, peaks 3.0–3.4 GiB).
Following the Container agents steps, for each eviction:
- Was it the only pod over its request? Effectively, yes. The CI runner's 53–62Mi on worker-1 was not what drove the node down, and on worker-3 the agent was the only pod over its request.
- Does a larger active request fit in place? No. Requested memory at 13:1x was 4988Mi (68 %) on worker-1, 6096Mi (84 %) on worker-2 and 6192Mi (85 %) on worker-3; at 13:3x 6076Mi (83 %, with miki's 1Gi active), 6096Mi (84 %) and 6288Mi (86 %), each of about 7245Mi allocatable. A request that covered these runs (about 3.5Gi) would not fit in place on any worker, and worker-2 is closed to the agents anyway (#2992).
- So the request was not raised. The measurements went to #2407. With the same run evicted three times and no request that fits, the runbook is exhausted: the capacity choice went to the owner as #2998, as the CI runners' did in #2898.
Where the agents went¶
Since #2992 (merged 09:25 the same day) the agents may not run on worker-2, and a memory eviction
always comes with MemoryPressure on its node. So every replacement went to the other worker, as
#2992 wrote down:
| After eviction | Node with MemoryPressure |
miki's replacement | emilia |
|---|---|---|---|
| 1, 12:59:15 | worker-1 (12:58:54–13:04:22) | x9ft7 on worker-3 |
worker-3 |
| 2, 13:13:51 | worker-3 (13:13:46–13:19:02) | 4qq44 on worker-1 |
worker-3 |
| 3, 13:30:23 | worker-1 (13:30:23–13:35:29) | wflc6 on worker-3 |
worker-3 |
At 13:39 both agents share worker-3 again, and stay there: the rule is IgnoredDuringExecution,
so nothing moves miki back to worker-1 until its pod is next replaced. While they share it:
- worker-3 has the least memory free, so a heavy miki run there is evicted with less growth, as the second eviction showed.
- miki's grow (+512Mi) and emilia's (+1024Mi) each fit on their own, but not together: when both
have a run at once, the second grow is
Deferredand that run goes on at its 512Mi idle request. - The first time, the stacking ended after 14.5 minutes, by the second eviction. Moving the agent back while it is idle is #2996.
What the agent did¶
All commands were read-only and named --context admin@mgmt-cluster. Nothing in the cluster was
changed.
kubectl get --raw "$AM/api/v2/alerts"through the Alertmanager Service proxy (Read Alertmanager and Prometheus on a cluster), at about 13:07, 13:29 and 13:37:PodEvicted6c7c414ed5aa326f, then alsoe60722aa9f73315dand0c890ff5c08cd2be, wereactiveand not silenced, and every alert'sclusterlabel washetzner-mgmt. The other active warning at 13:07,NodeHighMemoryUsageinmonitoring, was already firing before this incident.KubeNodeEvictionwas suppressed. Prometheus answered for worker-1, worker-2, worker-3 and control-plane-1 (count by (nodename) (node_uname_info)), so it was hetzner-mgmt's.- The PodEvicted read-only checks:
kubectl -n agent-runners get pod <pod> -o jsonpath='{.status.message}'forvx26x,x9ft7and4qq44returned the memory messages above, and.spec.nodeNametheir nodes.kubectl -n agent-runners get pods -o wideat about 13:07, 13:29, 13:30 and 13:31 showed each replacement and its node; at 13:31wflc6Running 3/3 on worker-3 next to emilia.kubectl -n agent-runners get eventsand the node events of worker-1 and worker-3 gave theEvicted,Scheduled,ResizeCompleted,NodeHasInsufficientMemoryandEvictionThresholdMettimes;kubectl get node <node> -o jsontheMemoryPressuretransitions.- The evicted pods' containers show exit 137
ContainerStatusUnknownfrom the eviction, not anOOMKilled. - Prometheus through the Service proxy:
- Pods on each node above their memory request before each eviction (the runbook's query).
- The runner's working set and the node's
node_memory_MemAvailable_bytesaround each eviction, emilia's working set and request from 12:50 to 13:20, andx9ft7's request. sum by (node, eviction_signal) (increase(kubelet_evictions[24h]))at 13:30: worker-1 and worker-3memory.available1 each, underNodeMemoryEvictionsFrequent's 10.- The runner's working-set quantiles in Root cause.
- Memory requested per worker (
kubectl describe node worker-1|2|3) at 13:1x and 13:3x. kubectl -n agent-runners logs miki-container-agent-d95755958-4qq44 -c runner: it claimed task 2982 (run 6478) at 13:23:37.list_runnersin Taskbase:miki-container-agentonline. The evicted pods' runner logs are gone, and this run may not read task 2982's runs or organization, so the first two runs' tasks are not known.- Did not raise the request (it does not fit), did not change the 4Gi limit, and did not delete the evicted Pod objects (the runbook allows that only once the cause is fixed, and it would end the alerts early). Did not move miki off worker-3: the cluster is not broken, and a pod deletion is not a GitOps change. That is #2996.
- Added the measurements to #2407, updated #2996, and raised the owner's decision #2998.
- This report.
Resolution and verification¶
Not resolved. At 13:39:
kubectl -n agent-runners get pods -o wide:miki-container-agent-d95755958-wflc6Running 3/3 on worker-3, Ready since 13:30:37, next toemilia-container-agent-67868bcb95-wsbtc.list_runnersin Taskbase showedmiki-container-agentonline.- worker-1
MemoryPressureFalse since 13:35:29, worker-3 since 13:19:02. Prometheus at 13:30:43:MemAvailableworker-1 4488Mi, worker-2 3812Mi, worker-3 4012Mi. - The three
PodEvictedalerts keep firing until about 18:59, 19:14 and 19:30, 6 hours after each eviction. That is the rule's window; the open fault is that the next heavy run will be evicted the same way until #2998 is decided.
Follow-ups¶
-
2998: owner decision on the capacity choice for container agent runs above ~3.3 GiB (add¶
capacity and raise the request, cap the limit, move heavy work elsewhere, or keep as is). -
2407: container agents' working memory request; it carries out the answer and holds these¶
measurements too. -
2996: decide whether an agent that was moved next to the other one should be moved back once its¶
own worker is free again, and how (a runbook step, or something that does it on its own), and document it in the PodEvicted runbook and the pod placement page.
References¶
- Alert:
PodEvicted, runbook - Taskbase incident task: #2995
- Runs: the
operatorruns of #2995 - Pull requests: this report's pull request
- Runbook sections: PodEvicted, Container agents, hetzner-mgmt worker memory eviction, hetzner-mgmt pod placement
- Earlier incidents: 2026-11-12, emilia-container-agent evicted for memory (#2884), 2026-11-12, worker-3 evicted CI runner pods for memory 11 times in a day (#2897)
Open questions¶
- Which tasks' runs were killed at 12:59:15 and 13:13:51. The runner's logs went with its
containers, and
list_runnersdoes not name the task. Their attention-triage tasks will. If they are task 2982 again, one task's run needs about 3.3 GiB, and its retries will be evicted the same way until triage escalates it. - What the runs did in the two minutes they grew by 2.7 GiB (a build, a test suite, or the agent itself).