Question

Duplicating and deleting droplets

I want to change some server blocks in nginx and restart pm2 without powering down my website. I was thinking I could just make a new droplet, set up everything there, and then delete the old droplet.

Is there any penalty for doing this frequently besides briefly paying for 2 droplets? Is it discouraged or against the EULA?

Is there a better/proper method?

Thanks


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

njw
DigitalOcean Employee
DigitalOcean Employee badge
December 17, 2021
Accepted Answer

Hey there!

There wouldn’t be any penalty for running two droplets. You would pay for the time they were both in your account but it wouldn’t be much if the second one is deleted right away.

The only issue with this would be switching of the DNS as this would take time. However you could setup a Floating IP address and point your DNS at the floating IP. This would then allow you to just attach the floating IP to the new droplet and things would continue to run.

Depending on your websites setup you could also look into Kubernetes setup which you could do continuous deployments with rolling updates and not have any down time. This is more complicated, but is an option.

Hope it helps! Nate

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel