swap: add a swapfile role, 2 GB on asxpio-ops

The ops server has 3.7 GB RAM and no swap. Forgejo, MinIO and the apps
fit with room to spare, but a spike (a big push, git gc, parallel
image pulls) would OOM-kill a service instead of paging out.

swappiness 10, so it only swaps under real pressure.

Assisted-by: Claude:opus-5
This commit is contained in:
Sergei Poljanski 2026-10-12 05:31:32 +04:00
commit 0af23425f9
3 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,6 @@
---
# Swapfile so a memory spike pages out instead of OOM-killing a service.
swap_file: /swapfile
swap_size_mb: 2048
# Low: only swap under real pressure, keep the page cache for the apps.
swap_swappiness: 10