SSH Pipelining & Connection Reuse
Cut overhead per task.
SSH Overhead Adds Up
Every task can mean a fresh login, file copy and execution over SSH. Multiply that by many tasks and many hosts and the overhead dominates the run.
How a Task Normally Runs
By default Ansible copies a module to the host, runs it, then cleans up. Each step costs an SSH round trip you can often avoid.
All lessons in this course
- forks & Parallelism Tuning
- Strategies: linear, free & host_pinned
- SSH Pipelining & Connection Reuse
- serial & Rolling Batch Execution