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
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!
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.
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