Hi Michael, I looked into the link. Note that I don't have ssh 5.6+ to use ControlPersist feature. Tried with paramiko, but with no change.
#1 In my first query, I had minimized the problem to the copy module. Copy module takes ~5 secs while scp takes < 1sec. I tried several options, but with no outcome. Can you help me in solving this? #2 I am on Debian squeeze and hence there is no ssh version > 5.5. I don't want to mess with the setup, as I login to my external servers. If I compile ssh 5.6+, can I provide to Ansible the path to the binary? I look forward to your inputs. On Friday, November 7, 2014 7:51:06 PM UTC+5:30, Michael DeHaan wrote: > > You can refer to http://www.ansible.com/blog/ansible-performance-tuning > for tuning tips. > > > On Thu, Nov 6, 2014 at 11:25 AM, Ethan Collins <[email protected] > <javascript:>> wrote: > >> Yes, I had tried that -- it pushes the CPU to max power and takes almost >> similar time. >> >> On Thursday, November 6, 2014 9:42:37 PM UTC+5:30, Brian Coca wrote: >>> >>> have you tried switching to paramiko as a transport? the default 'smart' >>> would use whichever is more optimal for your system. >>> >>> On Thu, Nov 6, 2014 at 10:41 AM, Ethan Collins <[email protected]> >>> wrote: >>> >>>> Can someone help me in solving this problem? This delay shows up in all >>>> things I execute using Ansible, thus making making my projects extremely >>>> slow. Tried several options on the net (that's why you see the ssh_args >>>> customized) but nothing fixed or bettered it. >>>> >>>> On Thursday, November 6, 2014 2:51:54 AM UTC+5:30, Ethan Collins wrote: >>>>> >>>>> I am using Ansible to copy a file from Debian to XP running on the >>>>> same machine on Virtualbox. Copying the file (437KB) using ssh as >>>>> transport >>>>> is taking 5 secs. I profiled the same copy operation using scp and that >>>>> takes ~820ms. >>>>> >>>>> I am using ssh 5.5 on Debian squeeze and hence don't have >>>>> ControlPersist support. I have set in ansible.cfg: [defaults] ... >>>>> transport >>>>> = ssh >>>>> >>>>> [ssh_connection] ssh_args = -o GSSAPIAuthentication=no -o >>>>> GSSAPIKeyExchange=no -o AddressFamily=inet -o >>>>> Ciphers=arcfour,blowfish-cbc >>>>> scp_if_ssh = True >>>>> >>>>> I am using Ansible 1.6.6. >>>>> >>>>> How can I better the speed, close to that of scp? Am I missing some >>>>> configuration? >>>>> >>>> -- >>>> 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 [email protected]. >>>> To post to this group, send email to [email protected]. >>>> To view this discussion on the web visit https://groups.google.com/d/ >>>> msgid/ansible-project/91579550-d644-4d4f-9fb1- >>>> 19fed0b512e6%40googlegroups.com >>>> <https://groups.google.com/d/msgid/ansible-project/91579550-d644-4d4f-9fb1-19fed0b512e6%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Brian Coca >>> >> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/6b87bb36-990e-4329-9b36-2ce025f4a042%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/6b87bb36-990e-4329-9b36-2ce025f4a042%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/61f5d621-66b7-460b-89d2-3b085ac0f49c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
