Duplicating and deleting droplets

Posted December 17, 2021 111 views
NginxInitial Server Setup

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?


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.

Submit an Answer
1 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!