From bcfe89a1a2691fb8e35caf6d72fcca3ced94443f Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 21 Oct 2026 08:48:12 +0200 Subject: [PATCH] USER-WP-0040: wave-2 resource right-sizing receiving workplan Receiving workplan for the 2026-10-21 node allocation review (RESOURCE-WP-0008-T03 / CUST-WP-0071-T03). Wave-2 apply is human-gated; no manifest changes. WORK-RECORDS.md regenerated from staged sources. Co-Authored-By: Claude Opus 5.5 Assistant: claude-code Assistant-Model: opus Assistant-Process: 8340@bnt-lap001 Assistant-Session: 2e192b3d-b3e8-4403-94d4-d55a2c8b476c --- WORK-RECORDS.md | 2 + ...SER-WP-0040-wave2-resource-right-sizing.md | 58 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 workplans/USER-WP-0040-wave2-resource-right-sizing.md diff --git a/WORK-RECORDS.md b/WORK-RECORDS.md index 348aecb..489c034 100644 --- a/WORK-RECORDS.md +++ b/WORK-RECORDS.md @@ -50,6 +50,7 @@ | workplan | USER-WP-0037 | blocked | — | workplans/USER-WP-0037-hub-authority-lookup.md | | workplan | USER-WP-0038 | ready | — | workplans/USER-WP-0038-runtime-image-os-package-hardening.md | | workplan | USER-WP-0039 | finished | — | workplans/USER-WP-0039-sign-in-diagnosis-session-uids.md | +| workplan | USER-WP-0040 | ready | — | workplans/USER-WP-0040-wave2-resource-right-sizing.md | | task | USER-WP-ADHOC-2026-09-06-T01 | done | — | workplans/ADHOC-2026-09-06.md | | task | USER-WP-ADHOC-2026-10-09-T01 | done | — | workplans/ADHOC-2026-10-09.md | | task | USER-WP-ADHOC-2026-10-09-T02 | done | — | workplans/ADHOC-2026-10-09.md | @@ -244,5 +245,6 @@ | task | USER-WP-0038-T01 | todo | — | workplans/USER-WP-0038-runtime-image-os-package-hardening.md | | task | USER-WP-0039-T01 | done | — | workplans/USER-WP-0039-sign-in-diagnosis-session-uids.md | | task | USER-WP-0039-T02 | done | — | workplans/USER-WP-0039-sign-in-diagnosis-session-uids.md | +| task | USER-WP-0040-T01 | wait | — | workplans/USER-WP-0040-wave2-resource-right-sizing.md | | intake | USER-IN-0001 | answered | — | intakes/intakes.md | | intake | USER-IN-0002 | open | — | intakes/intakes.md | diff --git a/workplans/USER-WP-0040-wave2-resource-right-sizing.md b/workplans/USER-WP-0040-wave2-resource-right-sizing.md new file mode 100644 index 0000000..714f704 --- /dev/null +++ b/workplans/USER-WP-0040-wave2-resource-right-sizing.md @@ -0,0 +1,58 @@ +--- +id: USER-WP-0040 +type: workplan +title: "Wave-2 resource right-sizing from the 2026-10-21 allocation review" +domain: communication +repo: user-engine +status: ready +flavor: implementation +owner: claude +topic_slug: user-engine +created: "2026-10-21" +updated: "2026-10-21" +related: + - CUST-WP-0071 + - RESOURCE-WP-0008 +--- + +# USER-WP-0040 — Wave-2 resource right-sizing from the 2026-10-21 allocation review + +Receiving workplan in `user-engine` for the wave-2 request changes below. Deploy sources live in `rapp-user-engine`. + +Origin: the 2026-10-21 node allocation review (`RESOURCE-WP-0008-T03`, feeding `CUST-WP-0071-T03`). Per the founder's 2026-10-21 delivery interview (`the-custodian/docs/decisions/2026-10-21-cust-wp-0071-delivery-interview.md`) the small adjustments form wave 2: one receiving task per owner repo, applied later in a batch. Applying wave 2 needs a separate founder approval, so every cluster-write task here is a human-gated `wait`. This file changes no manifest. + +## Apply the reviewed request changes + +```task +id: USER-WP-0040-T01 +status: wait +priority: medium +needs_human: true +blocking_reason: "Wave-2 cluster write; founder approval for wave 2 not yet given (2026-10-21 interview)" +``` + +Values are pod-aggregate figures from the budget file (7-day window ending 2026-10-21T06:08Z). Limits stay unchanged unless stated. + +| Workload (ns/name) | Pods | CPU request | CPU limit | CPU p95/peak 7d (m) | Memory request | Memory limit | Mem p95/peak (Mi) | Throttle | Action | +|---|---:|---:|---:|---:|---:|---:|---:|---:|---| +| `user-engine/user-engine` | 1 | 50m → **5m** | 500m | 0.4/4.2 | 64Mi → **64Mi** | 256Mi | 55.7/56.7 | 0.0 | decrease | +| `user-engine/user-engine-pg` | 1 | 100m → **50m** | 1000m | 7.5/9.7 | 256Mi → **96Mi** | 1024Mi | 78.3/102.7 | 0.0 | decrease + memory down | + +Source and container detail: + +- `user-engine/user-engine`: Deployment `user-engine`, container `portal`, `rapp-user-engine/manifests/runtime.yaml` (50m/64Mi); a parallel copy exists in `net-kingdom/sso-mfa/k8s/user-engine/runtime.yaml` — confirm which one is deployed. +- `user-engine/user-engine-pg`: CNPG Cluster `user-engine-pg` (deployed from rapp-user-engine; locate its `spec.resources`, today 100m/256Mi). + +Evidence: resource-control `docs/evidence/2026-10-21-node-allocation-review/2026-10-21-node-budget.md` (+ `.json`, commit `3d9b1bd`). Rule: CPU = max(floor, p95x1.5, peakx0.5) rounded up to 5m; memory request = 7d p95 working set x1.15 (only when the change is at least 64Mi). + +Steps: + +1. Map the pod-aggregate proposal onto the named container(s) in the source file; where a workload has several containers or pods, split by the per-pod figures in `2026-10-21-workload-usage.json` and keep the sum at the proposed value. +2. Prepare the source change as a reviewed commit (no push, no sync) and record the before values here. +3. Apply only inside the batched wave-2 rollout, after founder approval, through the owner's normal deploy path (ArgoCD sync or documented helm/kubectl apply). + +Verification: `kubectl -n get pod -o jsonpath='{..resources}'` shows the new requests; pods Ready with no new restarts or OOMKilled over 24h; for CPU decreases the throttle ratio and request latency stay at or below the 7d baseline; node request total drops by the expected delta. + +Rollback: revert the source commit and re-sync/re-apply; the before values in the table above are the rollback target. Keep before/after `kubectl get -o yaml` captures as the receipt. + +Single-instance Cluster: the user-engine-pg change restarts PostgreSQL; schedule it with the portal change.