One of my application is running behind a Load balancer on a server in east region
. I have created a replica of the same application and deployed it on a server in west
region
My question is, that can I achieve High availability using two load balancers? Something Like
My thoughts:
west
REGION, whenever a deployment is done on east
region.east
region is downPATCH
API, remove the mapping of load balancer in EAST
region.
b. Using Load Balancer PATCH
API, update the mapping of load balancer in WEST
region [To match with the previous east region mappings]Are these feasible?
Note that each Dedicated Load Balancer has a unique DNS host name in CloudHub. And the certificate subject's common name attribute must match the host name to avoid SSL/TLS validation errors in the clients.
If you are intending to failover transparently for the clients, meaning that the next requests go through LB-2, then you should have a DNS CNAME record that matches LB-1 and you need to point to LB-2. If you don't have a DNS CNAME record to point to the other dedicated load balancer, then you need to change the clients URL to point to LB-2, and need to be sure that the certificate has a Subject Alternative Name with LB-2 host name, so it is valid for both.