fix(PLAT-1988): set resources and readiness gating on KV Mall manifests #25
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 370 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25"
general
weight: 0.35
BenElferink
What this PR does / why we need it:
Linear: PLAT-1988
KV Mall containers had no CPU or memory requests or limits. Node autoscalers such as EKS Auto Mode size and pack nodes from pod requests, so best-effort KV Mall pods landed on undersized nodes and were evicted or starved after every deploy.
Every container in every KV Mall manifest (full, Go-only and Java-only prod bundles,
prod-deploy/infra,infra, and each service's dev deployment) now declares requests and limits, sized from measured usage under the default load generator:| Component | Requests (CPU / memory) | Limits (CPU / memory) |
|---|---|---|
| Java services (frontend, inventory, pricing, warehouse) | 100m / 256–384Mi | 1 / 1Gi |
| Node.js (coupon, mail), Python (ads) | 50m / 64–96Mi | 500m / 256Mi |
| Go services (analytics, membership), PHP currency | 20m / 32Mi | 250m / 128Mi |
| Load generator (load is tunable through its env vars) | 20m / 32Mi | 2 / 512Mi |
| nginx sidecar | 10m / 16Mi | 100m / 64Mi |
| Cassandra | 250m / 2Gi | 2 / 2Gi |
| Kafka | 100m / 1536Mi | 1 / 1536Mi |
| MySQL | 100m / 1Gi | 1 / 1Gi |
| Zookeeper | 50m / 512Mi | 500m / 512Mi |
| Postgres | 50m / 128Mi | 500m / 512Mi |
| Memcached | 10m / 96Mi | 100m / 96Mi |
Cassandra sized its heap from node memory (about 3.5 GB on an idle cluster) and ignored the container limit, so its heap is now pinned with
MAX_HEAP_SIZE=1GandHEAP_NEWSIZE=256M.Every container that listens on a port also gets a TCP readiness probe, so Services route only to pods that accept connections. The load generator now waits in an init container until the frontend's
/productssucceeds, so purchases start only once the frontend, inventory, pricing, coupon and ads are all up. Before, it hit connection refused errors and 500s for its first requests. The Go-only bundle has no frontend, so its load generator still starts immediately.Design: Probes are TCP rather than HTTP so kubelet checks don't add traces to the demo's telemetry. No liveness probes were added, to avoid restart loops on slow starts. CPU requests sit near steady-state usage, with high CPU limits so JVM startup isn't throttled. Stateful infra gets memory request equal to limit, so it's never the first thing evicted; services get burstable memory with about 2x headroom.
Risks: Zookeeper and the older Kafka image in
prod-deploy/infrawere sized by image defaults, not measured.Proof
None
Changelog entry: Does this PR introduce a user-facing bug fix, feature, dependency update, or breaking change??
``
release-note
``KV Mall manifests now set CPU and memory requests and limits and readiness probes on every container, and the load generator waits for the frontend, so the demo starts cleanly and schedules reliably on autoscaled clusters such as EKS Auto Mode.
🤖 Generated with Claude Code