4 ms·
Love Ansible, but am I the only one who has found 2.0 to be unbearably slow? Some patterns I use may now be anti-patterns I should factor out, but even with som
by skywhopper 11y ago
Love Ansible, but am I the only one who has found 2.0 to be unbearably slow? Some patterns I use may now be anti-patterns I should factor out, but even with some optimizations, I'm finding Ansible 2.0 to be 3-4x slower than 1.9. Maybe it has to do with # of hosts or variable field depth, but it's really really depressing.
- jaytaylor 11y agoI also use and really appreciate Ansible. I tried out 2.0 yesterday and found the sheer number of incompatiblities with my existing work very frustrating. I wish there was a clear migration path of exactly what needs to be changed to port things from 1.x -> 2.0, rather than just many cycles of "try it and patch".
- jeffwidman 11y agoAs another Ansible user contemplating the 1.9-->2.0 migration, I'd appreciate if you would submit PRs updating the porting guide with stuff that you hit that wasn't already mentioned:https://github.com/ansible/ansible/blob/devel/docsite/rst/porting_guide_2.0.rst https://github.com/ansible/ansible/blob/devel/docsite/rst/po...
- jaytaylor 11y agoThank you for pointing me to the porting guide doc! If only they'd linked to that in the article ;)
- LukeHoersten 11y agoDo you have connection pipelining enabled?: [ssh_connection] pipelining = True Ansible 2 is extremely fast for me.
- ivanb 11y agoBut then you have to disable requiretty in /etc/sudoers or some commands will fail. E.g. synchronize.
- skywhopper 11y agoYes, pipelining is on. I've been doing some further testing and I suspect some of the nested roles we're using are the source of the slowness, because for simple playbooks and simple tasks, the speed is comparable (Ansible 1.9 still comes in a little faster, unless I enable the `free` strategy in 2.0).