Skip to content

agent: the 200m CPU limit turns 5–25 ms snapshot builds into 100 ms CFS steps and parks goroutines holding the cache mutex — remove the limit (or ≥1000m) and pin GOMAXPROCS #1116

Closed

Description

@bpalermo

Owner decision, raised by #1105 (PR #1114) and visible in #1086/#1103. The node agent runs with resources.limits.cpu: 200m (= requests, Guaranteed QoS). Snapshot builds are 5–25 ms CPU bursts on a latency-critical path (ODCDS answers, EDS/drain propagation). Under a 200m CFS quota any build over ~20 ms of CPU spans at least two 100 ms periods, and the goroutine can be throttled while holding the snapshot-cache mutex — the residual ~80 ms p99 ADS wait measured after #1114 is exactly that, and it disappears without the quota.

Recommendation from the measurements: keep the 200m request, remove the CPU limit (or raise it to ≥1000m if a limit is required), and set GOMAXPROCS=2 explicitly (since Go 1.25 the runtime derives it from the cgroup limit, so removing the limit would otherwise let it scale to the node's cores). Trade-off: without limit=request the pod is Burstable, not Guaranteed (eviction order, CPU-manager static policy not in use here). Chart: agent.resources default + talos values; bump Chart.yaml. Gate: aether.agent.snapshot.set_duration and build wall-clock p99 on talos before/after; first-use burst (#1086) and drain propagation (#1103) timings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions