Interview Prep/Ansible/Performance and Scale

What is a quick-win checklist for a slow playbook?

BeginnerProductionPerformance and Scale
Answer
  1. pipelining = True and ControlPersist.
  2. forks raised to match the controller and the targets.
  3. gather_facts: false where not needed; gather_subset and caching otherwise.
  4. Package names as lists, no one-item loops.
  5. profile_tasks to find slow tasks and fix the top few.
  6. async for slow independent tasks, free strategy where tasks are independent.
  7. Local mirrors for packages and artifacts.
  8. Run only what changed: --limit, tags.

Most of the gain comes from items 1 to 3.

All Ansible questions Roadmap: Ansible

More on Performance and Scale