Skip to content

Lower gateway CPU/memory reservation to 50m / 128MB - #17

Merged
ndbroadbent merged 1 commit into
mainfrom
nathan/resize_gateway
Sep 10, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
nathan/resize_gateway

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Sep 10, 2026

Copy link
Copy Markdown
Member

Part of the rack node right-sizing. Container Insights over 30 days shows the gateway pod peaking at 21m CPU and 18MB on both US and EU against a 256m / 256MB reservation. Under convox the memory value is also the OOM limit, so 128MB keeps ~7x headroom over the observed peak while returning ~200m of CPU reservation per rack to the scheduler.

The image is docspringcom/rack-gateway:latest, so no release is needed: merge, then convox deploy --rack <staging|eu|us> --app rack-gateway from this repo.

https://claude.ai/code/session_01R2itDKW8THGwwopBkoHxS8

Summary by CodeRabbit

  • Chores
    • Reduced reserved CPU and memory resources for the gateway service based on observed usage.

Container Insights over 30 days shows the gateway peaking at 21m CPU and
18MB on both US and EU against a 256m / 256MB reservation. Requests only
reserve node capacity and were helping keep every node above the cluster
autoscaler's 50% scale-down threshold.

Claude-Session: https://claude.ai/code/session_01R2itDKW8THGwwopBkoHxS8
@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: bdf7952c-eaff-4a85-bfb1-072a805db253

📥 Commits

Reviewing files that changed from the base of the PR and between e327add and 60830d1.

📒 Files selected for processing (1)
  • convox.yml

Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


Walkthrough

The gateway service resource reservations changed from 256 CPU units and 256 MB memory to 50 CPU units and 128 MB memory. Comments document observed peak usage and memory headroom.

Changes

Gateway resource configuration

Layer / File(s) Summary
Adjust gateway reservations
convox.yml
The gateway service reserves 50 CPU units and 128 MB memory. Comments document peak capacity and OOM headroom.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 60830

The gateway’s CPU and memory reservations are reduced while retaining documented headroom over observed usage. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: lowering the gateway CPU and memory reservations to 50m and 128MB.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch nathan/resize_gateway

A rabbit trims the gateway’s load
Smaller numbers line the road
Fifty CPUs hop in place
One-twenty-eight keeps memory safe
Comments mark the peak with grace

Comment @coderabbitai help to get the list of available commands.

@deepsource-io

deepsource-io Bot commented Sep 10, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in e327add...60830d1 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Sep 10, 2026 12:47a.m. Review ↗
Go Sep 10, 2026 12:47a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@ndbroadbent
ndbroadbent merged commit 2b244e1 into main Sep 10, 2026
9 of 10 checks passed
@ndbroadbent
ndbroadbent deleted the nathan/resize_gateway branch September 10, 2026 00:58
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