By mattiasf
I am migrating servers from Google Cloud engine to DigitalOcean. I’d like to ensure there’s zero-down time. I know I can update the DNS servers (but this will take some time). I would like to reroute any traffic coming to Google Cloud engine to my new DO server.
Any advice?
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, @mattiasf
You can migrate your sites over to DigitalOcean and test them using your hosts file on your PC and make sure everything is working fine before switching the DNS to DigitalOcean. In this way you can make sure everything is working properly on DigitalOcean and you will prevent any issues when switching the DNS. If you’re not familiar with the process let me know and I can provide you with detailed instructions in order to set your hosts file.
When you switch the DNS from Google Cloud to DigitalOcean there will be some propagation and some of the visitors may still “see” the version hosted on Google’s end. DNS changes might take up to 48 hours due to DNS cache from all the ISPs, but usually happens a lot faster.
Simply switching the DNS over should be completely fine. I don’t know if you’re running an eCommerce website or a simple blog, but even if someone places an order on your site or publish any comment/post and etc you can still re-migrate only the missing content/database table/row in order to make sure everything is updated on DigitalOcean end.
Another solution is that during the DNS propagation you can simply put a holding (coming soon/under maintenance page) for an hour or two in order to prevent any issues. This is something I’ve done before in order to make sure no one will visit the version on the old host during the DNS propagation.
If you have any questions, feel free to ask.
Hey! Thanks for your answer. The only real trouble I have is managing the SSL certificate through letsencrypt. Because while I am testing and DNS haven’t resolved yet, I don’t see it possible to make a letsencrypt certificate using the certbot
How to migrate from google cloud to digital ocean, the all-in on wp won’t work, what are the steps that need to be taken, please??
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.