# Common database for AWX servers

**URL:** <https://forum.ansible.com/t/common-database-for-awx-servers/35942>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 29, 2021, 2:56pm UTC](https://forum.ansible.com/t/common-database-for-awx-servers/35942 "2021-10-29T14:56:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [October 29, 2021, 2:56pm UTC](https://forum.ansible.com/t/common-database-for-awx-servers/35942/1 "2021-10-29T14:56:45Z")

</div>

Hello All,

Did any one configured a common database for 2 AWX servers.

(i.e, 2 AWX servers behind a Load balancer hitting same database server on the backend. )

If anyone have tried and accomplished please share details.

Appreciate you help… Thanks in Advance.

Regards,  
Vinod

---

<div class="post-metadata">

**Author:** ![pabbisetty.hm](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@pabbisetty.hm](https://forum.ansible.com/u/pabbisetty.hm)\
**Post date:** [October 31, 2021, 4:35pm UTC](https://forum.ansible.com/t/common-database-for-awx-servers/35942/2 "2021-10-31T16:35:33Z")

</div>

We did it but it’s not a recommended HA /DR approach. In your case, it will be only Application server that is action as DR.

Something like this we implemented.

 ![HA-Awx.JPG](https://us1.discourse-cdn.com/ansible/original/2X/d/d0f7f557e085004549e2ec868fae59f9c626d99a.jpeg)

---

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [October 31, 2021, 7:08pm UTC](https://forum.ansible.com/t/common-database-for-awx-servers/35942/3 "2021-10-31T19:08:16Z")

</div>

Thank you for sharing,

In my current scenario i have configured AWX using dockers and it is working fine on one node.  
The image got 4 containers which works as part of the cluster.

Now I configured another (second) node and would like to have it as a failover.  
Not sure how to set postgres on first node to talk to postgres on second node when they are all part of the cluster on their respective nodes.

If any thoughts please share.  
Or if you know any other way please let me know.
