# Slowness problèmes after upgrade from 2.8 to 2.9

**URL:** <https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [October 21, 2020, 11:31am UTC](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071 "2020-10-21T11:31:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin\_Aveno](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Post date:** [October 21, 2020, 11:31am UTC](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071/1 "2020-10-21T11:31:35Z")

</div>

Hi everyone,  
I have a slowness problem after upgrading ansible from ansible 2.8 to ansible 2.9 (and from python 2.7 to python 3 only on controller). A lot of differents taskes (and différents modules) became very slow (from seconds to more than 5 minutes). After activating debug, I can see à kind of loop over loading module:

`Loading Lookup Module '<one module in urlsplit/env/cordes/files/k8s/mathstuff/... each in turns> from <path_to_module>`  
More than 4000 times in à raw for each module.

Have you ever experimence this kind of slowness ?

---

<div class="post-metadata">

**Author:** ![Jorge\_Rua1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Post date:** [October 21, 2020, 12:04pm UTC](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071/2 "2020-10-21T12:04:00Z")

</div>

I _suspect_ that issue might be caused by the newer ansible version which is potentially exhausting resources on the ansible controller node.  
Pay close attention to memory usage on the controller node when you’re running ansible.

---

<div class="post-metadata">

**Author:** ![Quentin\_Aveno1](https://avatars.discourse-cdn.com/v4/letter/q/0ea827/32.png) [@Quentin\_Aveno1](https://forum.ansible.com/u/Quentin_Aveno1)\
**Post date:** [October 21, 2020, 3:29pm UTC](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071/3 "2020-10-21T15:29:14Z")

</div>

Thanks for advice, I will take a look.

---

<div class="post-metadata">

**Author:** ![Quentin\_Aveno](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Post date:** [March 8, 2021, 8:39pm UTC](https://forum.ansible.com/t/slowness-problemes-after-upgrade-from-2-8-to-2-9/34071/4 "2021-03-08T20:39:09Z")

</div>

We found the problems after many times and it’s caused by [https://github.com/ansible/ansible/issues/68763](https://github.com/ansible/ansible/issues/68763)

(we rollback to ansible 2.8 for some times and now we will work on our lookup and variables to fix the issue)  
Thanks for the help anyway.  
Have a nice day.
