From 6b2cf5a07bc573d0277d16f151e4457b000cf874 Mon Sep 17 00:00:00 2001 From: justin Date: Sat, 27 Jun 2026 10:00:15 -0500 Subject: [PATCH] infra: raise disk alert thresholds to 90% warn / 94% auto-clean 80% was too chatty for a box that idles ~72%. 90% warn / 94% reclaim still leaves ~14GB headroom before the danger zone (Postgres needs free space to checkpoint). --- infra/monitoring/pw-disk-space-alert.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/monitoring/pw-disk-space-alert.sh b/infra/monitoring/pw-disk-space-alert.sh index 6d8f5f8..beb9fe0 100644 --- a/infra/monitoring/pw-disk-space-alert.sh +++ b/infra/monitoring/pw-disk-space-alert.sh @@ -13,8 +13,8 @@ set -uo pipefail ENV_FILE=/opt/performancewest/.env -WARN_PCT=${PW_DISK_WARN_PCT:-80} # Telegram warning at/above this % -CRIT_PCT=${PW_DISK_CRIT_PCT:-88} # auto-cleanup kicks in at/above this % +WARN_PCT=${PW_DISK_WARN_PCT:-90} # Telegram warning at/above this % +CRIT_PCT=${PW_DISK_CRIT_PCT:-94} # auto-cleanup kicks in at/above this % MOUNT=/ BOT=$(grep -E '^TELEGRAM_BOT_TOKEN=' "$ENV_FILE" 2>/dev/null | head -1 | cut -d= -f2-)