fix: runner stability and resource limits #8

Merged
mvhutz merged 1 commits from fix/runner-stability into main 2026-03-16 02:52:09 +00:00
Owner

Summary

  • Add 2G swap on runner to prevent OOM crashes
  • Limit job container memory to 1536MB
  • Restrict runner concurrency to 1 job at a time
  • Disable cache to avoid Docker network connectivity issues (ETIMEDOUT 172.17.0.2)
  • Configure job containers with --add-host for private network gitea resolution

Test plan

  • Runner survives Go builds that previously OOM-killed the server
  • Verify swap is active after fresh provision (swapon --show)
  • Confirm job containers respect memory limit

🤖 Generated with Claude Code

## Summary - Add 2G swap on runner to prevent OOM crashes - Limit job container memory to 1536MB - Restrict runner concurrency to 1 job at a time - Disable cache to avoid Docker network connectivity issues (`ETIMEDOUT 172.17.0.2`) - Configure job containers with `--add-host` for private network gitea resolution ## Test plan - [x] Runner survives Go builds that previously OOM-killed the server - [ ] Verify swap is active after fresh provision (`swapon --show`) - [ ] Confirm job containers respect memory limit 🤖 Generated with [Claude Code](https://claude.com/claude-code)
mvhutz added 1 commit 2026-03-16 02:51:37 +00:00
Prevent OOM crashes by adding 2G swap, limiting job containers to
1536MB memory, and restricting concurrency to one job at a time.
Also configures job containers with gitea host resolution and
disables cache to avoid Docker network connectivity issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mvhutz merged commit 565b7889d8 into main 2026-03-16 02:52:09 +00:00
mvhutz deleted branch fix/runner-stability 2026-03-16 02:52:09 +00:00
Sign in to join this conversation.