Due to low availabilty and increased cost of IPV4’s, I’m trying to reduce the number of IP4’s I’m using.
Is there a simple way to change IP adress of a site without downtime?
Changing an IP is straight forward in Hestia, but it immidiately changes listening IP’s in apache and nginx, while global DNS entry’s still point to an old IP, and there is “Your new server is ready to use” message instead of the site for hours (or even days for some slow DNS’s).
I guess adding an old IP to virtual hosts and listening address would work, but it will take me days to manually change IP’s for all the sites I want to switch.
Reducing ttl will not do any good on slow DNS’s, and I have a few sites that should have 100% availability. Reducing ttl is still an expected downtime.
Is there any reason why apache and nginx listen to a specific IP? Can’t just all servers listen to all? (*)
Security? Performance?
I will test tonight, but the last time I was doing the same thing, I didn’t notice that one of the major mobile provider’s DNS didn’t comply with lower TTL, and I lost about 30% of the traffic for one whole day.
My usual solution to this problem is to listen to all IP’s for at least 72 hours, and only then I’m sure everything is 100% up and running.