How do I know if pipelining is working

1,097 views
Skip to first unread message

Jacob Weber

unread,
May 6, 2014, 7:07:03 PM5/6/14
to ansible...@googlegroups.com
Hello. I just tried enabling ssh pipelining in Ansible 1.6, by doing this:

- commenting out "Defaults requiretty" in the source and destination hosts
- adding "pipelining = True" to /etc/ansible.cfg

I timed a playbook with about 100 plays, a few times before and after, and it took around 1:05 each time. Is there anything else I need to try? Both hosts are on RHEL 6.4.
Thanks.

Jacob Weber

unread,
May 6, 2014, 7:11:25 PM5/6/14
to ansible...@googlegroups.com
> commenting out "Defaults requiretty" in the source and destination hosts

FYI, this refers to the sudoers file. I also tried "Defaults !requiretty", and the speed was the same.

Michael DeHaan

unread,
May 6, 2014, 8:04:13 PM5/6/14
to ansible...@googlegroups.com
So, pipelining mode is only usable if you are using the SSH connection type (-c ssh), so I'd first check to make sure you are running on a system where that is the default -- i.e. not Enterprise Linux (RHEL, CentOS, etc).

You've mentioned you are using RHEL, so this has to be explicitly requested, which is not the default -- and due to lack of ControlPersist on this platform (which is why -c ssh is not the default there but is everywhere it's available) it may not be as performant.

So, by default, your EL system is still using paramiko, which I hope explains things.

The other case is if your playbook uses "su" (not sudo), in which case pipelining is explicitly disabled due to technical limitations.

(I'd recommend maybe considering running from a Fedora -- or even Ubuntu -- host if you want it full-on optimized)



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/634627d6-cac5-40ad-a2ac-37fe3a655061%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jacob Weber

unread,
May 6, 2014, 8:48:38 PM5/6/14
to ansible...@googlegroups.com
Makes sense. I'm not really too concerned about the speed, so I'll leave it alone. Thanks for the explanation.
Reply all
Reply to author
Forward
0 new messages