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. 

Le vendredi 1 octobre 2021 à 23:11:25 UTC+2, nds.ap...@gmail.com a écrit :

> 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.
>
> ===========================================
> Read vars_file '{{ playbook_dir }}/{{ streams_file_name }}'
> <172.16.0.161> ESTABLISH SSH CONNECTION FOR USER: root
> <172.16.0.195> SSH: EXEC sshpass -d74 ssh -C -o ControlMaster=auto -o 
> ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o 
> ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/3dd37d3787 172.16.0.195 
> '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
> <172.16.0.241> (0, b'/root\n', b'')
> ====================================================
>
> Has not gone yet to the main part of the traffic start process.
>
> Have used mitogen too and its not helping us in any way.
> Have configured everything that can be done on the configuration part.
>
> Fork currently is being set to 64 considering the RAM that we have (64GB) 
> and also increased the CPU cores too but does not help in reducing the time.
>
> Any pointers in working on scale. 
>
> Was under the impression that Ansible would help for scale but does not 
> look to be promising.
>
> Regards
> Aprameya
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a55fcc29-0e92-48f5-a4ea-70432c7ddacdn%40googlegroups.com.

Reply via email to