I have 1. server with fully configured CA API Gateway. Let's say server URL is "caapi1.test.hr".
I have 2. server with MySQL database (first server is connected to this one because of database) and on this server I have configured Docker container with CA API Gateway. Let's say server URL is "caapi2.test.hr".
Now I want to make when one server goes off other one must take their job so my CA API Gateway will never go in situation that it's not working. I want to map all on first server URL --> "caapi1.test.hr".
Is there any easy way to achieve this or some step-by-step tutorial for this specific use case ?
Thanks in advance!