# Ansible performing poorly on scale setups

**URL:** <https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814>\
**Category:** Ansible Project\
**Created:** [October 1, 2021, 9:11pm UTC](https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814 "2021-10-01T21:11:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aprameya\_NDS](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Post date:** [October 1, 2021, 9:11pm UTC](https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814/1 "2021-10-01T21:11:25Z")

</div>

Hi,

we are using Ansible playbooks to build traffic tools and have around 500 hosts.

For e.g:  
We build a stream file to map the interfaces of all the hosts and then trigger traffic on respective hosts participating. This stream file is around 100 MB.

So just this line in one of the playbook:

vars\_files:

- “{{ playbook\_dir }}/{{ streams\_file\_name }}”

Is taking almost 1-2 hrs of time to run.

---

<div class="post-metadata">

**Author:** ![steve\_missoh](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@steve\_missoh](https://forum.ansible.com/u/steve_missoh)\
**Post date:** [October 4, 2021, 7:06pm UTC](https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814/2 "2021-10-04T19:06:20Z")

</div>

I dont think ansible has ever been designed to perform at scale.  
Chef or Puppet are better at that because they are agent based.  
If you already tried mitogen and ssh pipelining and even increased the forks, I suggest you take a look at the new paradigm of execution environments that comes with Ansible Automation Platform 2.  
Regards.

---

<div class="post-metadata">

**Author:** ![Sandip\_Bhattacharya](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Sandip\_Bhattacharya](https://forum.ansible.com/u/Sandip_Bhattacharya)\
**Post date:** [October 5, 2021, 8:41am UTC](https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814/3 "2021-10-05T08:41:35Z")

</div>

I believe there are other vars plugins that you can use? They may work better than the files module. Or write your own.  
[https://docs.ansible.com/ansible/latest/plugins/vars.html](https://docs.ansible.com/ansible/latest/plugins/vars.html)

Alternatively, instead of using vars plugins, you maybe able to use lookup plugins for fetching data, and use faster stores to randomly access data instead of loading it all into memory at the beginning.

- Sandip
