Parallel deployment issue

48 views
Skip to first unread message

oMgSufod

unread,
Jun 16, 2016, 1:36:32 PM6/16/16
to Ansible Project
Hi,

We are using Ansible to deploy a lot of differents services on a lot of servers.

We developped a backend which is starting ansible playbook when the user send a rest request.

In our project, we deploy entire platforms and we have a web GUI to monitor the deployment.

As we need a "per service" or a "per host" granularity to get some informations during the deployment of each service ( success, failure, etc ), we decided to run one ansible-playbook process per inventory host, to be able to get the return code from each process in our manager.

The problem is that when we deploy more than 20 servers, there is 20 ansible-playbook parent processes and they are VERY resources consuming (load = 50) and then some processes are killed because of oom issues.

So we decided to use the "strategy free" deployment to run only one playbook for all hosts, but then we lost the "per host" return code granularity and we really need this.

We could add more CPU/RAM, but it doesn't seems to be a scalable solution.

Our goal is to deploy 100+ hosts simultaneously in the fastest way.

We don't want to wait the end of the playbook to detect errors on some hosts, we prefer to be able to detect errors as soon as possible to re-run only the failed hosts

Is ansible tower solving this issue ? Else how could we solve this please ?

Thanks.

Alex Leonhardt

unread,
Jun 16, 2016, 2:45:34 PM6/16/16
to ansible...@googlegroups.com
In cloud land you could, in theory, have a lambda (or whatever comparable GCE offers) that schedules a task/container that runs your playbook.. Fully isolated, so one play won't kill another or prevent it from running.. That way, you can scale it horizontally rather than vertically across many (cheap) instances..

Just an idea..

Alex
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2a4364d0-8fcc-458b-acc2-2c3972254dd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ying chen

unread,
Feb 10, 2017, 3:01:13 PM2/10/17
to Ansible Project
@oMgSufod

I have similar question since I want to setup a cluster of hundreds of VM on cloud land. And there is a dedicated VM installed with ansible.
Have you got some conclusion at last?

Or is there any best practice on cpu/memory configuration which depends on number of nodes in cluster?

Thanks

在 2016年6月17日星期五 UTC+8上午1:36:32,oMgSufod写道:
Reply all
Reply to author
Forward
0 new messages