Interview Prep/Ansible/Performance and Scale

How do you size a control node or execution node?

AdvancedProductionPerformance and Scale
Answer

Each fork is a separate Python process and typical usage is 50 to 150 MB, depending on the number of variables and the plugins. AWX uses about 100 MB per fork in its capacity calculation and counts about 4 forks per CPU core for scheduling.

So 50 concurrent forks want roughly 5 GB RAM and 8 to 12 vCPUs, with room for the OS, the controller's database and parallel jobs. Large inventories with big hostvars increase the per-fork footprint. Load test with a representative playbook, watch free -m and top during the run, and tune forks accordingly. If a job gets OOM-killed, lower forks first.

All Ansible questions Roadmap: Ansible

More on Performance and Scale