Skip to content

fix: tighten openclaw and claude-remote memory limits to 2x request - #532

Merged
mashkovd merged 1 commit into
mainfrom
fix/tighten-openclaw-claude-remote-memory-limits
Jul 6, 2026
Merged

mashkovd merged 1 commit into
mainfrom
fix/tighten-openclaw-claude-remote-memory-limits

Conversation

@mashkovd

@mashkovd mashkovd commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Trims memory limits on admins/openclaw, labs/openclaw, ovk/openclaw, and labs/claude-remote from 2.5x-4x their memory requests down to base-service's own 2x default ratio.
  • Applies the same 2x ratio in the openclaw onboarding template (argo-workflows/service-templates/openclaw/values.yaml.tpl) so new tenants don't inherit the old, wider ratio.
  • CPU limits and the s3-sync sidecar are untouched (separate CPU-overcommit follow-up, out of scope here).

Why

Part of the 2026-07 platform audit follow-up (docs/audit/PLATFORM_ASSESSMENT_2026-07.md): by memory limits, the cluster only has headroom for ~1 more nfc-sized tenant even though request headroom covers 8-11. These four services carry limit:request ratios far above the chart default, a pattern built up reactively during past CPU-throttling incidents rather than tuned for memory — tenant quota usage data (mctl_get_resource_usage) shows this headroom sitting unused. This is step 1 of a 2-step plan; step 2 will right-size the affected tenants' quotas.limits.memory ceilings to actually return the freed memory to the shared cluster pool.

Test plan

  • helm template rendered for all four edited values files, confirmed the new limit value appears on the correct (main) container
  • After merge + ArgoCD sync: confirm no OOMKill/CrashLoop on admins-openclaw, ovk-openclaw, labs-claude-remote (labs-openclaw is currently scaled to 0)
  • @claude review and CI green before merge

admins/labs/ovk openclaw and labs/claude-remote carried memory limits
2.5x-4x their requests, a ratio built up reactively during past CPU
incidents rather than tuned for memory. Tenant quota usage data shows
this headroom sitting unused. Trim to base-service's own 2x default
ratio to reclaim quota-ceiling headroom for onboarding more tenants,
and apply the same ratio in the openclaw onboarding template so new
tenants don't inherit the old ratio. CPU limits are untouched.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@claude

claude Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@claude

claude Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Claude finished @mashkovd's task in 50s —— View job


✅ No P1/P2 findings, good to merge

All five memory limit changes are correct and consistent:

  • admins/openclaw: 768Mi req → 1536Mi limit (2×)
  • labs/openclaw: 1024Mi req → 2048Mi limit (2×)
  • ovk/openclaw: 768Mi req → 1536Mi limit (2×)
  • labs/claude-remote: 512Mi req → 1024Mi limit (2×)
  • openclaw template: 768Mi req → 1536Mi limit (2×)

All ratios match base-service's default 2× ratio. Comments clearly explain the audit rationale. YAML formatting follows conventions. Commit message is conventional.

@mashkovd
mashkovd merged commit 7ac0471 into main Jul 6, 2026
6 checks passed
@mashkovd
mashkovd deleted the fix/tighten-openclaw-claude-remote-memory-limits branch July 6, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant