Repository navigation
Conversation
OOM-kills happen when openclaw runs its various node tools when k8s limits are set. 1. scripts/k8s/manifests/deployment.yaml — added NODE_OPTIONS=--max-old-space-size=1536 to the gateway container env, with a comment explaining the cgroup/heap mismatch. Placed right after NODE_ENV, before the secret-backed vars. 2. docs/install/kubernetes.md — added a "Memory and the Node heap" subsection under Customization, explaining why the cap exists and the keep-in-sync rule. Fix is modeled after the existing fly docs and examples. - deploy/fly.private.toml:22 — NODE_OPTIONS = "--max-old-space-size=1536" (the actual config) - docs/install/fly.md:59 — same line, in the Fly install doc
|
Codex review: found issues before merge. Reviewed July 8, 2026, 11:00 AM ET / 15:00 UTC. Summary PR surface: Docs +10, Other +6. Total +16 across 2 files. Reproducibility: yes. for the review blockers: the PR diff still contains Node/cgroup wording contradicted by current Node/libuv source, and the committed docs map is missing the new heading. The original Kubernetes OOM is supported by contributor Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Land only after correcting the Node/container-memory explanation, regenerating Do we have a high-confidence way to reproduce the issue? Yes for the review blockers: the PR diff still contains Node/cgroup wording contradicted by current Node/libuv source, and the committed docs map is missing the new heading. The original Kubernetes OOM is supported by contributor Is this the best way to solve the issue? No as written. The heap cap is a plausible mitigation, but the best solution must describe the real container-headroom tradeoff, keep generated docs aligned, and get maintainer acceptance for the manifest default. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9d7a6b5da61b. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Docs +10, Other +6. Total +16 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (2 earlier review cycles)
|
|
@navicore thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
updated body with evidence 3 item including |
|
This pull request has been automatically marked as stale due to inactivity. |
docs(k8s) OOM-kills happen when openclaw runs its various node tools when k8s limits are set.
What Problem This Solves
on kubernetes, OOM-kills happen when openclaw runs its various node tools when k8s limits are set.
Why This Change Was Made
This documentation and example would have saved me the time it took to debug and discover the node setting needed to stop node from trying to gobble up more resources than allowed.
The crash is especially hard to recover from because upon automatic restart the agent goes into a blocking unresponsive state with no logging due to the gateway lock loop state the OOM-kill puts the container into - also observed in the fly fix #1572
User Impact
The impact is avoiding the fatal crash that happens when the agent runs its node-based tools for purposes such as status/healthcheck.
Evidence