Hello,
I am new to Ansible /Awx. We have deployed Awx on two PKS clusters. Both are connected to Postgres database in replica mode.
Now, when we are trying to access Load balancer URL - we are getting ’ 503 no server found error’.
Any inputs or suggestions on how to resolve this issue?
Pabbisetty h (pabbisetty.hm@gmail.com) said:
I am new to Ansible /Awx. We have deployed Awx on two PKS clusters. Both
are connected to Postgres database in replica mode.
Now, when we are trying to access Load balancer URL - we are getting ' *503
no server found error*'.
Any inputs or suggestions on how to resolve this issue?
Your diagram implies you have two separate clusters pointed at a single
replicated database. Don't do that.
Beyond that, you'd need the actual logs to see where the 503 is coming
from, but your suggested architecture will not work.
Bill
@ Bill - Thank you for your inputs. I would like to clarify the above setup is Active(primary) and passive (secondary). We are using DB in replicated mode to keep data in sync.
Can you suggest what changes are required to achieve HA ? Thank you.
Pabbisetty h (pabbisetty.hm@gmail.com) said:
@ Bill - Thank you for your inputs. I would like to clarify the above setup
is Active(primary) and passive (secondary). We are using DB in replicated
mode to keep data in sync.
That doesn't change a word of what I said. You can't have multiple
deployments talking to the same database thinking they both are the
single active cluster.
Bill
Hi Bill,
Let me clarify, We have two AWX deployments running in two separate K8S clusters. AWX1 in cluster 1 and AWX2 in cluster 2. The only active server is AWX1 and it is connected to a postgres DB in Read/Write Mode, lets call this Postgres1. AWX2 has the same key configs as AWX1 aside from a few changes. AWX 2 is always inactive but it is connected to another postgres DB in only read Mode, lets call this Postgres 2.
Postgres 1 has active synchronous replication to Postgres 2 so that if AWX 1 goes down, we can make a few changes to redirect traffic to AWX2 and make postgres 2 Read/Write
PS: the postgres DB’s are running outside the k8s Cluster as DB servers
Now we have an F5 for GTM that we want to use for all our applications integrations with AWX so that we don’t have to change that input on applications every time we switch and it can just redirect traffic to whichever AWX is active.
We have SSL certs terminated on NGINX which uses a k8s loadbalancer service to expose to outside the cluster.
Now the problem is when we configure that AWX endpoint to receive traffic from the F5, we get that error 503 no server found error’ on the F5 url that maps the VIF to the AWX endpoint. What do you think the problem is
Hi Bill,
I know you suggested our HA design will not work. Can you assist what changes are required to make HA/LB working on AWX. Thank you.