Wouldn’t it be easier to just detach the Elastic IP from the failed instance and reattach it to the new one? DNS changes are not immediate even if you have a low TTL on the record.
You might also want to try SoftEther VPN. It’s an open-source P2TP VPN server written by the University of Tsukuba in Japan. It is free, easy to use and most importantly it supports clustering and thereby scaling horizontally.
Building applications that rely on 100% uptime of the network infrastructure is a bad move to begin. I pushed back on requirements like this, and stateful failover, because it encourages software engineers to stop thinking about error handing at the application layer.
Not exactly. The dns records will still have a small TTL and the lag of the healthcheck itself, but I think what the person you were replying to was probably referring to is how some dns providers, especially ISP ones, don’t allow a very low TTL and make sure the minimum is above a certain number to avoid constant recaching. I’ve had 60 second TTL changes take much longer than 1 minute for users to hit the new IP.
By just rebinding the elastic IP it will remove all those variables and you’re only reliant on how fast that detaching and attaching takes. Bad DNS providers don’t matter then.
I agree here, Elastic IP can be much faster than waiting on TTL.. Currently I’ve been looking for a way to automate changing the Elastic IP when I spin up new servers that I promote to production
Is there anyway to configure this on the command line or via a config file? I see it has a client manager, but I’m not seeing enough info to automate the deployment? Also, any Google MFA integration?
Currently deployed openvpn fully configured via ansible, but I’d love an ha setup
Wouldn’t it be easier to just detach the Elastic IP from the failed instance and reattach it to the new one? DNS changes are not immediate even if you have a low TTL on the record.
And to harden the IP allocation with a Resource Tag constraint. Definitely faster recovery