By JHogg11
I want to upgrade my droplet from Ubuntu 16.04 to 20.04. I know that the first steps are to create a snapshot and then create a new droplet from the snapshot.
To get inbound traffic to the backup droplet while the main droplet is updating, is it as simple as changing the A record for the domain to use the IP of the backup? Can I assume that the backup droplet will be fully functioning as soon as it’s created? Will changing the IP on the A record create significant downtime?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
To avoid any downtime, what you could do is:
One thing to keep in mind is the database, as if you are making some changes to your site, they would be preserved on the new Droplet, so you might have to carry them over to the old one once the upgrade has been completed.
Regards, Bobby
Heya,
Upgrading your droplet from Ubuntu 16.04 to 20.04 involves several steps, and ensuring minimal downtime requires careful planning. Here’s a detailed plan addressing your questions and guiding you through the process:
Yes, changing the A record of your domain to point to the IP address of the backup droplet will direct inbound traffic to the backup.
Lower the TTL (Time to Live) of your DNS records to a minimal value (e.g., 60 seconds) a few hours before making the change. This ensures that DNS changes propagate quickly.
DNS changes usually propagate within the TTL period, but can sometimes take up to 24-48 hours globally. Lowering the TTL beforehand helps reduce this time significantly.
sudo apt update
sudo apt upgrade sudo apt dist-upgrade
sudo apt install update-manager-core
sudo do-release-upgrade
Ensure the backup droplet has all necessary configurations and data before switching DNS. This might involve syncing the latest data if there have been changes since the snapshot was taken.
If your application involves dynamic data (like a database), ensure data consistency between the main and backup droplet. You may need to sync data just before making the switch.
Use tools like dig or online services like DNS propagation checkers to monitor DNS changes.
Inform users about potential downtime or maintenance windows. Though the DNS switch is quick, some users might still experience brief interruptions.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.