Now a days each and every company want their website hosted on cloud server. Digitalocean is one of the very famous cloud platef orm which provides facility to host websites on cloud virtual server.
Here, first let us know what is droplet in digitalocean?
Digitalocean droplet is an individual Linux based virtual machine/server. We can create as much virtual machines as we want. After creating virtual machine we need to setup a Apache, Nginx or any other website hosting server. Each droplet consists of memory, disk and CPU based on your chosen plan. Digitalocean facilitates you to resize, increase or decrease server configuration later if your needs arise.
Resizing a droplet means increasing or decreasing memory, disk space or number of CPU. Based on this, Digitalocean gives you two types of resizing.
1- CPU and RAM only: This option lets you increase or decrease the amount of CPU and RAM available to a Droplet.
2- Disk, CPU, and RAM: This option increases the amount of CPU and RAM available to a Droplet and permanently increases the size of a Droplet's disk.
When you resize a Droplet, its price changes to match the cost of its new plan. See the Droplet pricing page ( https://www.digitalocean.com/pricing/#Compute ) for a full list of plans and prices.
Important Points Before Resizing:
1- You cannot decrease the size of a Droplet's disk. In other words, disk resizes are irreversible.
2- Allow for about one minute of downtime per GB of used disk space
3- We strongly recommend taking a snapshot of the Droplet before resizing.
Droplets may change hypervisors during a resize, and any changes to a filesystem can lead to data loss if something goes wrong. We strongly recommend backing up the Droplet's data before resizing. If you use snapshots, you can delete the snapshot after confirming that the resize was successful.
Resizing Droplets:
Before resizing the droplet you need to turn it off first from command line to avoid any data corruption.
sudo shutdown -h now
Now go to the digitalocean control panel and click on particular droplet and then go to Resize menu in left sidebar. You can see in below image.
Choose any of the option as per your requirement.
If the Droplet isn't powered off, you'll see a Turn off Droplet warning window open up. This lets you power down the Droplet from the control panel, but because this risks data corruption, we recommend shutting down from the command line.
Once the Droplet is powered down and you've chosen its new plan, click Resize. A progress bar displays as the resize takes place.
When the resize event is finished, click the On/Off button to power the Droplet back on.
In certain cases, a disk resize fails to resize the Droplet's partition or filesystem. If you rerun df -h after a disk resize and the output is unchanged, this usually indicates a problem. Use gdisk to get more information:
gdisk -l /dev/vda
If you also want to register and get a free account for a month click here or register with https://m.do.co/c/1591e42db9c2