mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 19:29:27 -06:00
During the #8811 incident the instance's root volume filled with uncollected temp dirs, yet /healthcheck stayed green throughout: the empty-job queue check passed (one of two slots still worked) and the EFS health file read doesn't touch the root filesystem. The load balancer therefore kept the instance in service for hours while every compilation failed with ENOSPC. Check free space (statfs) on the filesystem hosting os.tmpdir() and report unhealthy below a configurable threshold, so the instance is replaced before ENOSPC. Defaults to 100MiB; prod (amazon.properties) sets 2GiB, giving several minutes of headroom at incident fill rates. A statfs failure is itself treated as unhealthy. Set healthCheckMinFreeSpaceMiB=0 to disable. Fixes part of #8811. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>