docs: record the node-io guard as the etcd/jind io-isolation remedy, with measurements
This commit is contained in:
parent
2eff85ba04
commit
baac2419e4
1 changed files with 4 additions and 1 deletions
|
|
@ -476,7 +476,10 @@ Host disks *(live)*: siriussec `/` 214 G, 141 G used (**70%**, 62 G free); rpi `
|
|||
- `cilium-operator` — widened earlier in `bd5057c` (`--leader-election-lease-duration=60s`, `renew-deadline=45s`, `resource-lock-timeout=20s`) in `infrastructure/networking/cilium/values.yaml`.
|
||||
- `kube-controller-manager` (~227) and `kube-scheduler` (~230) restarts are the *same stall event*, but they are kubeadm static pods, not GitOps: they were **not** changed and need their own `--leader-elect` tuning pass.
|
||||
- Honest gap: one stall hour (`2026-10-24 22`, 18 events, worst 5.95 s) had **no** amd64 runner job and began the same minute a Pi-side `onionwire` job started. Unexplained but observed — do not claim dind-on-siriussec is the sole source.
|
||||
- 60 s is a tourniquet, comfortably above the 10.4 s worst case; widening further fixes nothing. The real remedies — cgroup-v2 `io.max`/`io.weight` on the dind pod, moving the dind data-root or `forgejo-data` off the etcd device, capping dind growth — are a separate change with cluster-wide blast radius.
|
||||
- 60 s is a tourniquet, comfortably above the 10.4 s worst case; widening further fixes nothing. The remedy now shipped is **`infrastructure/node-io`** (`etcd-io-guard`, a one-node DaemonSet on siriussec): `vm.dirty_bytes=64 MiB` / `dirty_background_bytes=16 MiB` bound the host writeback backlog, and `io.max wbps=40 MiB/s` caps the **dind container's own cgroup** (never a slice — etcd is in `kubepods-burstable.slice`). Both are re-applied on drift every 30 s and re-discovered after a runner pod recreation, so a new dind cgroup is capped within one tick.
|
||||
- Why not `io.latency`/iocost: this kernel exposes **no** `/sys/block/nvme0n1/queue/io.cost.*`, and cgroup-v2 applies `io.latency` targets only between **peers of the same parent** — kubelet gives every pod its own slice, so an etcd target can never throttle the dind pod (measured: dind's `io.stat` stayed `depth=max`). `io.max` is the available lever.
|
||||
- Measured 2026-10-26 (identical 150 s, 4×128 MiB `dd conv=fsync` load run **inside** the dind container): worst `slow fdatasync` **1.40 s** and **1** warning line vs 11, **0** fsyncs >8.192 s, **no** apiserver/KCM/scheduler restarts during the run, and exactly 6.0 GiB written in 157 s (41 MB/s — the cap binds). Unmitigated baseline on the same device: 68.9 s / 26.6 s / 17.6 s stalls with apiserver restart and lost KCM/scheduler leases.
|
||||
- Cost and limits: the 40 MiB/s cap costs ~11 % of dind write bandwidth and the 64 MiB dirty bound is host-global (every writer on siriussec). Moving the dind data-root off `/dev/nvme0n1p3` is still the only change that lets both knobs go back to default. Verify per the `node-io/README.md` checklist; `fstrim.timer` should also be enabled (it was disabled while the device reports `DISC-MAX 2T`).
|
||||
- Pi ufw allows `22/tcp` from anywhere, plus `10.10.0.0/24`, `10.244.0.0/16` and `51820/udp`; the WG forward rules between `wg0` and `wg-remote` are in place. The Linode hub also needs its own `FORWARD` accepts or spoke traffic dies past the hub.
|
||||
- Two stale WireGuard peers exist: mesh `10.10.0.4` (6 days, Tailscale endpoint) and Linode-hub `10.20.0.4` (no handshake). Harmless but misleading in `wg show`.
|
||||
- The Pi runs **Tailscale** (`tailscale0`, `100.71.235.119`) alongside WireGuard. Do not plan recovery around Tailscale-only paths; treat WireGuard/LAN as the primary.
|
||||
|
|
|
|||
Loading…
Reference in a new issue