Overview
The Cloudbees CI MCP Router is a long-running Kubernetes Deployment that holds one persistent in-memory MCP client connection per connected controller and per Operations center, for as long as the pod runs. No load testing of the Cloudbees CI MCP Router has been performed, and no benchmarked sizing guidance exists for how resource needs scale with controller count or concurrent MCP sessions.
This article covers how to size the Cloudbees CI MCP Router Deployment without benchmarked data: starting from the Helm chart’s own shipped default, understanding what that default actually guarantees, and what to monitor as a fleet grows.
Recommendations
Deploy the Cloudbees CI MCP Router through the Helm chart and start from its default resources
Use the cloudbees-core Helm chart’s McpRouter.resources default as the starting point for any Cloudbees CI MCP Router deployment, rather than inventing a value or leaving resources unset.
Why this matters:
-
The chart sets
requestsequal tolimits(1 CPU / 2Gi by default) specifically so the pod lands in the Kubernetes Guaranteed QoS class. A standalone manifest with no resources set at all runs as BestEffort QoS, the first class of pod Kubernetes evicts under node memory pressure. -
The Cloudbees CI MCP Router’s JVM sizes its heap from the memory limit, not the request. A
requests.memorylower thanlimits.memoryrisks the pod being scheduled onto a node that cannot actually honor the memory the JVM will try to use once its heap grows.
McpRouter: resources: requests: cpu: 1 memory: 2Gi limits: cpu: 1 memory: 2Gi
Keep requests and limits equal when raising memory
Do not raise limits.memory without raising requests.memory to match.
Why this matters:
-
The Cloudbees CI MCP Router’s JVM runs with
-XX:MaxRAMPercentage=80.0, so its heap grows toward 80% of whatever memory limit is configured, independent of how much memory was requested. -
A pod with
requests.memoryleft at a lower value while onlylimits.memoryis raised moves the pod into the Burstable QoS class: the JVM heap sizes itself for memory the pod is not actually guaranteed to have, making the pod a disproportionate eviction target under node memory pressure the moment real usage approaches the limit.
Monitor actual usage and adjust per fleet size, rather than assuming the default scales
Treat the Helm chart’s default as a safe starting point for a typical deployment, not as a validated ceiling or floor for every fleet size.
Why this matters:
-
The Cloudbees CI MCP Router holds one persistent MCP client connection in memory per connected controller, with no documented upper bound on how that scales.
-
CloudBees has not load-tested or published sizing guidance beyond the chart default; monitoring the deployment’s actual CPU and memory usage against the fleet’s real controller count and concurrent session volume is the only way to catch a fleet that has outgrown the default.
Watch for Out-Of-Memory container kills (OOMKilled in kubectl describe pod) as the concrete signal that limits.memory needs to be raised, rather than raising it preemptively without evidence.
|
Implementation
Setting Cloudbees CI MCP Router resources via Helm
-
Add or edit
McpRouter.resourcesin the chart’s values file:McpRouter: enabled: true resources: requests: cpu: 1 memory: 2Gi limits: cpu: 1 memory: 2Gi -
Apply the change:
helm upgrade cloudbees-core cloudbees/cloudbees-core -f values.yaml -
Confirm the pod’s QoS class is
Guaranteed:kubectl get pod -l app=mcp-router -o jsonpath='{.items[0].status.qosClass}'
Setting resources without Helm
If deploying the Cloudbees CI MCP Router as a standalone manifest rather than through the Helm chart, set explicit requests and limits on the container rather than leaving resources unset, using the same 1 CPU / 2Gi figures above as a starting point.
This figure is the Helm chart’s shipped default, not a load-tested benchmark; monitor and adjust it the same way as a Helm-deployed Cloudbees CI MCP Router.