I just tried the free strategy on the Ansbile 2.1.0 and the timing is better, yet scenario 3 is still faster as well as easier on the eyes in the default linear strategy. I have yet to actually look and dig in at the dependency code and realize there were tons of rewrites done to optimize development. I guess I was looking more for an answer like, "we didn't anticipate someone using dependencies this way" or "the dependency algorithm still needs optimizations". Which I believe the patch I applied was a step in the direction of better optimization. It's a huge jump going from 5.152 seconds on 1.9.2 to 12.472 seconds on 2.1.0, which is an increase of 142% for this particular role. This may not seem like a huge deal for 6 hosts but at times we are using Ansible pushing out to over 1000 hosts.
All roles listed in meta of common, Using Free Strategy time ansible-playbook -f6 -i hosts-nixtest -t dns playbook-common.yml *Version* *User* *System* *Total* 1.9.2 - - - 2.0.2 13.27 2.7 9.731 2.1.0 14.18 2.75 9.846 -Chris On Monday, June 6, 2016 at 3:44:12 PM UTC-5, Adam Morris wrote: > > Working your way back... > > I would expect 4 to be faster than 3 because your playbook is > significantly shorter. In 3 Ansible is having to check every task for the > tag and then run or not run it. In 4 it is doing the same, but with > significantly fewer tasks. > > 3 and 2 you would think should be the same, but it is having to build a > list of tasks from multiple roles, and making sure it adds all of the tasks > just once. It seems from another question about dependencies that the way > they are handled has changed. > ý > In addition the Strategies you are using could be causing issues. You > might want to look at > http://docs.ansible.com/ansible/playbooks_strategies.html too. > > -- 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/faf41dac-7711-4a85-a1e1-1143f145002f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
