CICD-204 · Configure runner capacity
Encyclopedia · Runner administration and execution infrastructure · All snippets
Previous · CICD-203 · Next · CICD-205
1. Where it fits
- Placement .runner/config.yaml.
- Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
- Platforms gitea-actions.
2. Copy the snippet
yaml
runner:
capacity: 2
timeout: 1h
shutdown_timeout: 30s3. How it works
capacity limits concurrent jobs per runner process, while timeout bounds each execution. Raise capacity only after measuring CPU, memory and queues.
4. Verify the result
Start with two parallel trusted jobs and inspect queue time, CPU and RAM. Capacity limits jobs per runner process.
Validation version-dependent (YAML parse). Status definitions.