what happens if you leave Ansible out and just fire off 100 copies of date?

On Wed, Dec 12, 2018 at 5:54 PM pradeep.hk <pradeep...@gmail.com> wrote:

> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08R%2BowoJVbVHFR-jfEG-PrWW9ktGzMN8myZUoYO-w59hLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to