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).
This commit is contained in:
justin 2026-06-27 10:00:15 -05:00
parent e318f12e36
commit 6b2cf5a07b

View file

@ -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-)