Skip to content

fix(helm): add CPU limits to main API and nginx containers - #5009

Open
pedrofrxncx wants to merge 1 commit into
mainfrom
fix/helm-cpu-limits-w1
Open

fix(helm): add CPU limits to main API and nginx containers#5009
pedrofrxncx wants to merge 1 commit into
mainfrom
fix/helm-cpu-limits-w1

Conversation

@pedrofrxncx

@pedrofrxncx pedrofrxncx commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

The main API containers requested 750m CPU each with no ceiling, and nginx requested 500m with no CPU limit. Without limits, containers can burst unbounded and starve other workloads on the node. This adds CPU limits aligned with best practices: 1 CPU per container (slightly above requests for headroom) matching the pattern already used for memory.

Verification

  • helm lint deploy/helm/studio/ passes (0 chart failures)
  • Changes: -1 / +5 on README (documentation) and values.yaml (configuration)
  • Behavior-preserving: only adds ceilings to prevent resource hogging; no pod scheduling or functional changes

Testing

helm lint deploy/helm/studio/
bun run fmt  # already run, no fixes needed

The main pod now limits to ~2.5 CPU cores total (2× API containers at 1 CPU each + nginx at 1 CPU) preventing resource hogging while accommodating LLM stream bursts.


Summary by cubic

Added CPU limits to the main API and nginx containers in the Helm chart to cap CPU usage and prevent node starvation. Each container now has a 1 CPU limit, capping the pod at ~2.5 CPUs while keeping current requests.

  • Bug Fixes
    • Set limits.cpu: "1" for API and nginx; requests remain 750m (API) and 500m (nginx).
    • Pod is now capped at ~2.5 CPUs to avoid burst-related resource hogging.
    • Updated README and values.yaml; helm lint passes.

Written for commit e2d71dc. Summary will update on new commits.

Review in cubic

API containers requested 750m CPU each with no ceiling, and nginx
requested 500m with no CPU limit. This allows containers to burst
unbounded and starve other workloads on the node. Add CPU limits
aligned with best practices: 1 CPU per container (slightly above
requests for headroom) matching the pattern already used for memory.

The main pod now limits to ~2.5 CPU cores total (2× API + nginx)
preventing resource hogging while accommodating LLM stream bursts.
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