longhorn: throttle rebuild concurrency + disable auto-balance during recovery #197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "plane/longhorn-throttle-recovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Throttle Longhorn during the EROFS-storm recovery on daytona.
Root cause (per K8s + Longhorn specialist diagnosis): both ZFS pools degraded — hdd-mirror single-disk (HOMELAB-860 sdb detach), ssd-mirror has one UNAVAIL Bestoss SSD. Sustained throughput ~30 MB/s. With
concurrentReplicaRebuildPerNodeLimit=5, the HDD spindle saturates → engine writes time out → kernel marks PVCs read-only → CNPG/redis/rabbit pods crashloop.Change: rebuild concurrency 5→1, auto-balance best-effort→disabled (already inert while volumes are degraded; removes controller pressure).
Restore criteria: revert to
concurrentReplicaRebuildPerNodeLimit: 2+replicaAutoBalance: best-effortonce (a) both ZFS pools are resilvered and (b) Longhorn rebuild backlog drains to <5 degraded volumes.Today's EROFS storm: with both ZFS pools degraded on daytona (hdd-mirror single-disk after HOMELAB-860 sdb detach, ssd-mirror has one UNAVAIL Bestoss SSD), the underlying disk sustains ~30 MB/s. concurrentReplicaRebuildPerNodeLimit=5 saturated the hdd-mirror spindle, engine sync writes timed out, kernel marked multiple PVCs read-only (postgres CNPGs, harbor-redis, plane-rabbitmq Mnesia). Throttle to 1 in-flight rebuild per node so the disk can serve foreground sync writes alongside replica rebuilds. Disable auto-balance during the recovery window — it's already inert while volumes are degraded ("Cannot auto-balance volume in degraded state" log spam) but remove the controller pressure entirely. Restore to concurrency=2 + replicaAutoBalance=best-effort once both ZFS pools are resilvered and the rebuild backlog has drained. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>