Why So Slow?

417 views
Skip to first unread message

Tiglath

unread,
Jul 31, 2014, 4:17:57 PM7/31/14
to ansible...@googlegroups.com
 
Trying Ansible for app deployment.   It's nice but why so slow?   This below involves copying four files and it takes minutes !!!    I am running on Solaris 11. 

 

      - name: Populate conf directory

        copy: src="{{ item }}" dest=/tcpcore/conf

        with_fileglob:   /commutil/conf/*

 

Michael DeHaan

unread,
Jul 31, 2014, 4:20:43 PM7/31/14
to ansible...@googlegroups.com
That's pretty crazy and not typical.

Please supply your ansible version, what OS you are running from, and what connection type we are using.

Also have you tried accelerated mode, ControlPersist or pipelining yet?

I assume these are smallish files and that shouldn't matter.  It will just be doing sftp/scp by default, so ... not sure what may be a factor on your end but let's start with that and explore.




--
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/5451f556-bfdb-448b-860b-7fcfdd15f950%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tiglath

unread,
Aug 1, 2014, 1:35:36 PM8/1/14
to ansible...@googlegroups.com
 
I am using Ansible 1.6.6 on Solaris 10.  Target system is Solaris 11 in a VM, that is mostly idle; both in the company LAN.
 
I am just getting started.  I don't think Solaris takes ControlPersist.  I had to make ssh_args = ""
 
I can't use unarchive either, it seems, as it uses the wrong tar, I tried changing the PATH throught .bashrc so /usr/gnu/bin comes before /usr/bin, but it does not seem to source it.   I've got issues... 
 
Thanks

Greg Andrews

unread,
Aug 1, 2014, 2:47:21 PM8/1/14
to ansible...@googlegroups.com
In the past, I've seen ssh connections into Solaris machines take a long time because the Solaris ssh daemon was doing a reverse DNS lookup on the connecting machine and there was no DNS for the machine.  30 seconds later, the DNS lookup timed out, and the connection continued.

If you have root on the target system, a quick way to confirm/deny this is to create an /etc/hosts entry with the IP address and hostname of your Ansible machine.  (create the /etc/hosts line on the target machine, not the Ansible machine).

  -Greg



Michael DeHaan

unread,
Aug 1, 2014, 3:17:07 PM8/1/14
to ansible...@googlegroups.com
I have seen reverse DNS lookup issues before, that can be a thing, so +1 Greg!

If using SSH without ControlPersist do also turn on pipelining.



Tiglath

unread,
Aug 1, 2014, 3:44:15 PM8/1/14
to ansible...@googlegroups.com
 
 
Thank you for your replies.
 
I just tried that, no effect.  Turned on pipelining, same.
 
It does seem like a 30 sec or so wait at least before it transfers each file. 
 
It's not useless, but it's going to slow playbook development. 

Michael DeHaan

unread,
Aug 1, 2014, 3:52:05 PM8/1/14
to ansible...@googlegroups.com
I forget what other network issues could exist at this time, though should be able to discover from general network and SSH type debugging.

(Make sure you turned off that check on the remote, not the control machine, if not already)





Reply all
Reply to author
Forward
0 new messages