Interview Prep/Ansible/Performance and Scale

What is SSH pipelining and why does it help?

BeginnerProductionPerformance and Scale
Answer

Without pipelining, each task copies a module file to the target over SFTP/SCP and then runs it in a second SSH call. With pipelining = True, Ansible streams the module to the Python interpreter's stdin in a single SSH session, removing the transfer and cleanup steps and typically cutting task time by a third or more.

[ssh_connection]
pipelining = True

It is disabled by default because it requires that requiretty is not set in sudoers (an old RHEL default). It also avoids the temp-file permission issues when becoming unprivileged users.

All Ansible questions Roadmap: Ansible

More on Performance and Scale