Awx: No more than 4 jobs running in the same time

Created on 8 Feb 2018  路  7Comments  路  Source: ansible/awx

ISSUE TYPE

  • Bug Report
COMPONENT NAME

  • API
SUMMARY

No more than 4 jobs running in the same time

ENVIRONMENT
  • AWX version: 1.0.1
  • AWX install method: openshift, minishift, docker on linux, docker for mac, boot2docker
  • Ansible version: 2.4.3
  • Operating System: centos7
  • Web Browser: chrome

When I try to run many jobs from different jobs templates and targeting different remote hosts, I cannot get more than 4 jobs running in the same time, the other stay in the waiting queue.

api bug

Most helpful comment

I try with version 1.0.4.48 and I have exactly the same problem. I try also with more memory and CPU (24GB/4CPU), always stucks at 4 jobs simultaneous and the others jobs still pending.

Environment :
AWX version: 1.0.4.48
AWX install method: docker on linux
Ansible version: 2.4.3
Operating System: Red Hat 7.4
Web Browser: chrome

All 7 comments

You didn't say how much resources you have given to AWX.

AWX capacity is a thing. For AWX version 1.0.3.X I have updated the capacity algorithm a bit, see this documentation: https://github.com/ansible/awx/blob/devel/docs/capacity.md

For 1.0.1 and current Tower releases you might be interested in a presentation I gave at Ansiblefest last year: https://www.youtube.com/watch?v=NiM4xNkauig I go over capacity planning and algorithm in that video.

Also: http://docs.ansible.com/ansible-tower/latest/html/userguide/jobs.html#job-concurrency

only 4 jobs can be executed concurrently per a awx_task container.

This is patently false do not listen to it. The maximum number of simultaneous jobs is based on the capacity of your system, see the documentation on this system here: https://github.com/ansible/awx/blob/devel/docs/capacity.md

I agree, but how do you explain that despite the ram update of 4 to 16GB, AWX still only launch 4 jobs simultaneously ?

I tested the same template (with same project, playbook, inventory) on the trial version of tower and I actually went ~20 jobs simultaneously on the same server.

Would there be an extra parameter to set for AWX ?

Environment :
AWX version: 1.0.2.0
AWX install method: docker on linux
Ansible version: 2.4.3
Operating System: CentOS 7/RH7 for Tower
Web Browser: chrome

This is a fairly old version of AWX... can you try 1.0.4.X?

I try with version 1.0.4.48 and I have exactly the same problem. I try also with more memory and CPU (24GB/4CPU), always stucks at 4 jobs simultaneous and the others jobs still pending.

Environment :
AWX version: 1.0.4.48
AWX install method: docker on linux
Ansible version: 2.4.3
Operating System: Red Hat 7.4
Web Browser: chrome

Why was this closed? This is still a problem and I'm running the latest version of AWS (6.1.0.0)

We haven't seen any information that actually demonstrates a problem or point towards a root cause.

Was this page helpful?
0 / 5 - 0 ratings