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.
More on Performance and Scale
Why can Ansible be slower than a shell script for 100 servers, and what dominates the time?BeginnerHow do you choose the `forks` value?BeginnerWhat is SSH pipelining and why does it help?BeginnerWhich SSH settings matter for performance and stability?IntermediateHow do you find out which tasks are slow?BeginnerHow do you reduce the cost of fact gathering?Intermediate