Hi, Just to note Mitogen scales quite poorly with the number of hosts just now, due to a single-CPU bottleneck regardless of the forks setting. There should be a new development branch by the end of the week to resolve this, that can already fully saturate (100% utilization) 8 cores given 100 targets, with no loss of speed up over single-host.
If you are struggling with a larger install and willing to guinea pig some new code (potentailly crashy, but not dangerously so!), please drop me a reply off-list. David [email protected] On Tuesday, August 7, 2018 at 8:34:22 AM UTC+1, Kai Stian Olstad wrote: > > On 07.08.2018 01:46, Pshem Kowalczyk wrote: > > We have a scenario where we pre-generate a lot of configuration on the > > controller host (targets are generally network devices, so not capable > > of > > running python). > > Typical generation process involves pulling data from a number odelef > > different systems (over APIs), running some local modules - mostly > > 'template'. A typical run for a single devices can have up to 500-700 > > tasks. > > > > A single device can be done under 5 minutes in most cases (including > > deployment). All the generation already runs with "strategy: free". > > Once we > > go to bigger deployments - 10-15 devices the time that's need gets > > significantly longer (40-50 minutes is not unusual). We tried throwing > > CPUs > > at the problem, but it looks like only one-two CPUs get ever to 100% > > whilst > > the rest of them seems to be near-idle (regardless of "fork" values). > > There's plenty of RAM too (utilisation hardly ever goes over 3-4GB). > > Is there a way for Ansible to utilise all the CPUs? > > What I do is running multiple ansible-playbook against different host at > the same time so it utilize more cores and memory. > > > > I realise this might > > not be a typical case, but we're looking now at deployments that have > > 30-40 > > devices and waiting 3h for completion is not something we'd want to > > see. > > You should check out Mitogen, some workload manage to run up to 7 times > faster. > https://mitogen.readthedocs.io/en/stable/ansible.html > > -- > Kai Stian Olstad > -- 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/827fd8f1-f844-4e89-af7e-36c673651f21%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
