I have a requirement to run lots of playbooks parallely on localhost.
When I run 100 playbooks parallely (a simple one that executes the a shell
command - date) , I see that
it consumes lot of resources (memory ~ 7GiB and CPU ~ 200%)
Is this on expected lines ?
here is what I am trying to run
--------------------main.yml-----------------------------------------
- hosts: 127.0.0.1
connection: local
gather_facts: no
tasks:
- name: Get date
shell: date
register: result
- debug:
var: result.stdout
-------------------------------------------------------------
I execute multiple of them with the following script
-------------------------------------------------------------
#!/bin/bash
COUNT=1
if [ $# -ne 0 ]
then
COUNT=$1
fi
for ((i=1;i<=$COUNT;i++));
do
ansible-playbook main.yml &
done
-------------------------------------------------------------
--
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/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.