When does the `free` strategy help, and what are the downsides?
IntermediateProductionPerformance and Scale
Answer
With strategy: free, each host runs through the tasks as fast as it can without waiting for the slowest host at every step. It helps when hosts differ greatly in speed (mixed instance sizes, slow mirrors) and tasks are independent.
Downsides: interleaved, hard-to-read output, tasks that depend on other hosts' results (run_once, delegation to shared resources, cluster operations) can become unsafe, and failure handling is less predictable. We do not use it for orchestrated rollouts, only for independent configuration of large groups.
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