4 ms·
Meh, the article doesn't really bring anything new to the table. If you are doing something like this, please keep in mind that this kind of DNS failover is, a
by crypt1d 10y ago
Meh, the article doesn't really bring anything new to the table.
If you are doing something like this, please keep in mind that this kind of DNS failover is, at best, unreliable. You have no control of how DNS is being cached on client side, and whether the client is going to switch to the next IP in the cycle if the previous one is unavailable.
Proper way to do HA would be to use some kind of VIP + load balancer combination (eg, keepalived + HAProxy), which would allow you to failover the IP instead to just rely on the hostname. However if you also have a database backend to think about, then u will most likely need something like Pacemaker to ensure you don't end up with data inconsistency (brain split scenario).