Interview Prep/Ansible/Performance, Testing and CI/CD

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 →

  1. Lower forks to what memory allows (roughly 100–150 MB per fork for big runs).
  2. Split the inventory with AWX job slicing, or run multiple smaller jobs.
  3. Reduce the data in hostvars; avoid huge registered results.
  4. Use no_log or loop_control.label to avoid giant output.

Why → Memory scales with forks and the size of inventory data.

Interview tip → AWX job slicing is the scalable answer.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD