docs: record Atlas build capacity evidence and rollback
This commit is contained in:
parent
8a5cf95f36
commit
a17f100978
48
docs/CI_CAPACITY_2026-12-05.md
Normal file
48
docs/CI_CAPACITY_2026-12-05.md
Normal file
@ -0,0 +1,48 @@
|
||||
# Atlas CI capacity, December 5, 2026
|
||||
|
||||
The release watch started [lesavka-compile #104](https://ci.bstein.dev/job/lesavka-compile/104/) on `titan-07`. The arm64 agent requested 350m CPU and 1,664Mi memory. Kubernetes created the pod at 09:39:16 CST, assigned it at 09:39:19, and reported it Ready at 09:39:39. Its 80Gi `ci-scratch` claim was Bound and mounted.
|
||||
|
||||
## Capacity and rollback
|
||||
|
||||
Commit `6c84cff6` excludes `titan-07` from the node affinity of two deployments. Their replacement pods became Ready on `titan-15` before the old pods terminated.
|
||||
|
||||
| Workload | CPU released | Memory released |
|
||||
| --- | ---: | ---: |
|
||||
| `hermes/hermes-switchyard` | 135m | 200Mi |
|
||||
| `jenkins/jenkins-vault-sync` | 25m | 256Mi |
|
||||
|
||||
With no Lesavka build running, `kubectl describe node titan-07` went from 3,347m CPU and 5,286Mi memory requested to **3,187m CPU and 4,830Mi**. That left 413m CPU and 1,955Mi memory available. Kubernetes and Longhorn both reported the node Ready and schedulable. Flux reported the `hermes` and `jenkins` kustomizations Ready at the change.
|
||||
|
||||
To undo both moves, revert `6c84cff6` on the Flux-tracked `main` branch. To undo one, restore just its file from the parent of that commit. Reconcile `hermes` or `jenkins` after pushing. The scheduler will choose among the eligible nodes on the resulting rollout.
|
||||
|
||||
## Worker recovery
|
||||
|
||||
No quarantined node met the return-to-service checks. The four schedulable Pi 4 spillover workers were `titan-13`, `15`, `17`, and `19`.
|
||||
|
||||
| Workers | Evidence on December 5 |
|
||||
| --- | --- |
|
||||
| `titan-04`, `titan-11` | Both kernels reported fresh undervoltage events during the inspection. Check the 5 V power supply and cable under load. |
|
||||
| `titan-05`, `titan-06` | Both were NotReady. SSH on the configured management path was refused on 05 and timed out on 06. Their last kubelet lease renewals were August 21 and September 21, respectively. Console or physical access is needed. |
|
||||
| `titan-08` | A bounded synchronous-write check on the USB runtime disk reached 323ms at p95 and 20% full I/O pressure over ten seconds. |
|
||||
| `titan-12` | The SD-backed worker reported 96% of allocatable memory in use and 78% CPU pressure over ten seconds. |
|
||||
| `titan-14`, `titan-18` | A temporary-file write check on each USB runtime disk reproduced stalls. Maximum durable-write latency was 1.49s on 14 and 1.76s on 18. |
|
||||
|
||||
## Mount timeouts
|
||||
|
||||
At 06:01:24 CST the kubelet on **titan-23** recorded eviction of the Longhorn instance manager to reclaim ephemeral storage. Its root filesystem had fallen to about 5% free. The mail storage and Hermes routing-catalog NFS shares lost readiness around 06:02. On **titan-07**, the kernel logged NFS server timeouts and CSI repeatedly tried to recover invalid staging mounts.
|
||||
|
||||
After disk pressure cleared, Longhorn recreated the instance manager and 18 share managers on titan-23. Both affected shares were Ready again by 08:34 CST. Cargo was subsequently observed writing to `/ccargo`, a bind mount on titan-23's root filesystem. Bounding that scratch space or moving it to a separate filesystem would reduce recurrence risk. The observed build workspace used a single-replica ReadWriteOnce Longhorn volume and its actual startup time is recorded above.
|
||||
|
||||
## Scheduling protection
|
||||
|
||||
Two small reservation pods on titan-07 and titan-22 use required inter-pod anti-affinity to keep ordinary new pods off those hostnames. The matching soft taints give eligible pods a placement preference. A scoped admission webhook adds architecture-specific eligibility and tolerations to new Jenkins agents, node infrastructure and named services that depend on these nodes. DaemonSet controllers can still create their node agents with a soft taint. Existing pods continue running. On December 5, a 1m CPU scheduler probe targeted at each hostname independently received `didn't satisfy existing pods anti-affinity rules`. Authenticated API dry runs verified both labels on a Jenkins agent and Longhorn manager, arm64 on Dovecot, amd64 on ClamAV, and no exemption on an ordinary pod. The service pods for mail, SSO, Nextcloud and LiveKit and the Jenkins controller retained their UIDs across activation. The admission service runs two replicas on separate spillover nodes.
|
||||
|
||||
The reservation protects against new general tenants. Existing tenants, node infrastructure, eligible Jenkins builds and grandfathered service replacements still compete for resources. The latest six completed software-test runs checked (173–178) used titan-22.
|
||||
|
||||
The arm64 reservation requests 1m CPU and 4Mi memory. With #104 running, the node showed 3,538m and 6,498Mi. Subtracting its 350m and 1,664Mi gives a baseline of 3,188m and 4,834Mi. This is a derived figure. The no-build measurement before adding the reservation is recorded above.
|
||||
|
||||
### Reverting the reservation
|
||||
|
||||
1. Revert `8a5cf95f` and `a5b87094` together on Flux main, then reconcile core. This removes the two reservations and stops the CronJob from enforcing the CI taints. Once core has reconciled, remove only the CI taint with `kubectl taint nodes titan-07 titan-22 atlas.bstein.dev/ci-reserved:PreferNoSchedule-`. The role reconciler uses imperative tainting, so removing its command alone leaves the last applied value on the nodes.
|
||||
2. Revert `23e84b27` to unregister admission. Confirm the mutating webhook configuration is gone before removing the serving deployment. Remove the ci-capacity entry and remaining ci-capacity serving files introduced in `0018283a`, including the small handler fix in `1913e74e`. The compiler-cache PVCs introduced in that same commit have an independent lifecycle.
|
||||
3. Reconcile core and verify `titan-07` remains Ready in both Kubernetes and Longhorn. Tenant placement can be reverted separately using the instructions above.
|
||||
Loading…
x
Reference in New Issue
Block a user