Optimization - Issue 263

I have opened ticket 263 (https://github.com/ansible/ansible/issues/263) to track nice to have optimizations. I had originally thought tarring/untarring files to upload would offer some nice speedups.

After spending some time implementing this, I discovered that the tar/untar takes as long as uploading the extra file, and requires a fair bit of reworking of the code. I was able to accomplish the same speedup by grouping the chmod, execute, and cleanup into a single exec. Further optimization could be accomplished by using a single tmp directory throughout a play, per host, and then cleaning it out at the end.

Two other possible optimizations are to keep ssh and sftp connections open throughout the play, if the fork level is not too high.

If anyone has any suggestions on other ways to speed up the setup & per taks times, I’d like to try to test them out.

Matthew

Maybe under a tmpfs filesystem

Pull mode local playbooks over git are going to be the ideal optimization for mid to large ranges of hosts, and that is quite easy (and in work). I am not sure we need to try other things.

OK, wasn’t aware those were in the works… that will certainly be quicker and probably makes my work moot :-).

Sfromm is working on it.