Files
vpn-dns-gateway/gitea/droplet-runner/admission-check.sh
T
vsun1 ed0a862657
vpn-dns-gateway/pipeline/pr-main This commit looks good
Move CI runners to Droplet and enable application HTTPS
2026-11-15 12:49:06 -05:00

6 lines
278 B
Bash

#!/bin/sh
# Pause fetching new jobs when the shared host has less than 600 MiB available.
# This is admission control, not a reservation or cross-engine execution lock.
set -eu
awk '/^MemAvailable:/ { found=1; if ($2 < 614400) exit 1 } END { if (!found) exit 1 }' /proc/meminfo