Your controller runs out of memory with `forks=200`.
AdvancedScenarioPerformance, Testing and CI/CD
Answer
Situation read → Each fork is a Python process with the playbook loaded.
What I'd do →
- Lower forks to what memory allows (roughly 100–150 MB per fork for big runs).
- Split the inventory with AWX job slicing, or run multiple smaller jobs.
- Reduce the data in hostvars; avoid huge registered results.
- Use
no_logorloop_control.labelto avoid giant output.
Why → Memory scales with forks and the size of inventory data.
Interview tip → AWX job slicing is the scalable answer.
More on Performance, Testing and CI/CD
A playbook that touches 200 hosts takes 40 minutes. Where do you start tuning?IntermediateYou install 15 packages with a loop and it is slow.BeginnerHow would you test a role in CI before it reaches production?IntermediateWhat would a Molecule `verify.yml` check for an Nginx role?IntermediateMolecule's idempotence step fails. How do you find the offending task?IntermediateDesign a CI pipeline for an Ansible repo.Advanced