diff --git a/workplans/RAIL-EN-WP-0003-wave2-resource-right-sizing.md b/workplans/RAIL-EN-WP-0003-wave2-resource-right-sizing.md new file mode 100644 index 0000000..27b6db7 --- /dev/null +++ b/workplans/RAIL-EN-WP-0003-wave2-resource-right-sizing.md @@ -0,0 +1,58 @@ +--- +id: RAIL-EN-WP-0003 +type: workplan +title: "Wave-2 resource right-sizing from the 2026-10-21 allocation review" +domain: financials +repo: railiance-enablement +status: ready +flavor: implementation +owner: claude +topic_slug: railiance +created: "2026-10-21" +updated: "2026-10-21" +related: + - CUST-WP-0071 + - RESOURCE-WP-0008 +--- + +# RAIL-EN-WP-0003 — Wave-2 resource right-sizing from the 2026-10-21 allocation review + +Receiving workplan in `railiance-enablement` for the wave-2 request changes below. + +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: RAIL-EN-WP-0003-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 | +|---|---:|---:|---:|---:|---:|---:|---:|---:|---| +| `argocd/argocd-application-controller` | 1 | 50m → **30m** | 1000m | 19.0/35.5 | 256Mi → **432Mi** | 1024Mi | 365.8/438.5 | 0.005 | decrease + memory up | +| `argocd/argocd-repo-server` | 1 | 25m → **10m** | 1000m | 0.9/4.9 | 128Mi → **128Mi** | 1024Mi | 63.1/73.4 | 0.0 | decrease | + +Source and container detail: + +- `argocd/argocd-application-controller`: StatefulSet `argocd-application-controller`, container `argocd-application-controller`, `deploy/argocd/railiance01/resources.yaml` (`requests: {cpu: 50m, memory: 256Mi}`). +- `argocd/argocd-repo-server`: Deployment `argocd-repo-server`, container `argocd-repo-server` (`requests: {cpu: 25m, memory: 128Mi}`); the `copyutil` init container (10m/32Mi) is unchanged. + +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. + +ArgoCD manages itself: apply through the RAIL-EN-WP-0002 declared-state path and confirm all Applications return to Synced/Healthy afterwards.