Question

Resizing A Droplet The Correct Way

Posted November 10, 2015 9.4k views
Ubuntu DigitalOcean Scaling

Hi,

One of my sites seems to be struggling with resources so i am thinking of Resizing the droplet from the $10 per month to the $20 per month plan.

I am surprised that i cannot find details on ‘How To Resize Your Droplet’… can anyone help with steps for this (Ubunto / Wordpress).

Thanks in advance for your help.

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.

2 answers

@mosaic - To resize a Droplet, you must first power it off. DigitalOcean, as of right now, does not offer a way to resize without powering down. While you can power down from DigitalOcean’s CP, ideally, it should be done from the CLI using the poweroff or shutdown -h now commands. Once the Droplet is offline, you can proceed to resize. The time it takes to resize varies and is not absolute, so it’s best to do this at a time when traffic is low.

The alternative is to create a snapshot (which also requires you to power down) of your current Droplet and then restore that snapshot to a larger Droplet of your choosing. In most cases, this is quicker and you’d follow the same process to shutdown the Droplet as you would if you were to choose to resize.

  • Thank you. It is much appreciated.

  • Please two questions. Would you need to destroy the first droplet you did a snapshot before you restore that snapshot to the new larger droplet. secondly, if you used the alternative of creating a new larger droplet, will you not lose the IP of the old droplet?

    • @ogbongefriends1 - I apologize for the delay in response! Kids, College and work have kept me loaded since the start of the year :).

      If you take a snapshot and restore to a new Droplet, you will effectively lose the IP that is associated with the current, yes. There is one way around this though and that’s with the newly added Floating IP’s (under Networking).

      You can assign a floating IP to the current Droplet and then modify any instances of the primary Droplet IP to use the Floating IP. Once this is done, shutdown, take a snapshot and then restore that snapshot to a new Droplet. Once the snapshot is restored, simply reassign the floating IP to the new Droplet and make the appropriate changes to your DNS (i.e. changing instances of the primarily Droplet IP to use the new Floating IP).

      That’d be the best way to go about it if downtime and the IP are a concern.

Hi, i just resized my droplet from 1GB RAM to 2GB RAM ( CPU & Disk Size not changed).
I did not lose any disk data, my old IP address & disk data were retained.

i just followed the steps in this documentation :
https://www.digitalocean.com/docs/droplets/how-to/resize/

Submit an Answer