# AWX Cluster installed on 3 nodes but the job fails when it runs from the 2nd or 3rd node

**URL:** <https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 19, 2019, 2:00pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316 "2019-09-19T14:00:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_A](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Post date:** [September 19, 2019, 2:00pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316/1 "2019-09-19T14:00:00Z")

</div>

Hi all,

I have installed the latest of AWX (7.0.0) but I have an issue.

When I test from UI with an adHoc command like "ping " from my primary node to any server on my network, the ping is OK  
When I run this same job from my second node, for example, the one remains in “Waiting” few seconds and then it fails. I can see the job on my first node so the relation is OK but it fails.

Could you tell me that it could be the root cause? ? RabbitMQ ?

(Note : I have an external database so not in a container)

My inventory file have been change with theses datas :

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [September 20, 2019, 2:17pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316/2 "2019-09-20T14:17:45Z")

</div>

What error message are you getting exactly? It looks like your configuration is targeting a local docker/Swarm deployment and neither of those deployment methods supports clustering. That’s been talked about extensively on other threads with some work arounds provided.

---

<div class="post-metadata">

**Author:** ![Cedric\_A](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Post date:** [September 23, 2019, 12:02pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316/3 "2019-09-23T12:02:04Z")

</div>

Could you give me the real or good method for deploying AWX 7 in cluster mode?  
🙂

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [September 23, 2019, 12:38pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316/4 "2019-09-23T12:38:02Z")

</div>

There’s a couple options you can try. The first is to deploy on Kubernetes which is the AWX-team supported clustering method. But if deploying onto K8s isn’t an option, some folks have been able to make changes to the installer to run a Swarm-clustered solution. I believe one of the users got the local docker clustering solution hammered out [[https://groups.google.com/d/msg/awx-project/QxdoiT6r7BM/eD35g0sLBAAJ](https://groups.google.com/d/msg/awx-project/QxdoiT6r7BM/eD35g0sLBAAJ)] but since it’s not “officially supported”, you might have trouble getting support when issues come up.

FYI I haven’t personally worked with the local docker clustering solution and can’t speak for it

---

<div class="post-metadata">

**Author:** ![Cedric\_A](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Post date:** [September 23, 2019, 12:48pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316/5 "2019-09-23T12:48:33Z")

</div>

Ok thanks for your help, for the moment I can’t use K8s but if you can give me the link for use it … ? 🙂

In the meantime, I will try to apply the second method you provided me.  
Thanks

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [September 23, 2019, 3:59pm UTC](https://forum.ansible.com/t/awx-cluster-installed-on-3-nodes-but-the-job-fails-when-it-runs-from-the-2nd-or-3rd-node/31316/6 "2019-09-23T15:59:31Z")

</div>

Sure thing, take a look at the Kubernetes section in the install guide [[https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes](https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes)] for info on K8s deployment requirements. Then you can scale the deployment/statefulset via standard kubectl controls: kubectl scale statefulsets --replicas=.

Good luck!
