How Do I Resize or Upgrade My DigitalOcean Droplet?
Scale your DigitalOcean Droplet up or down — add CPU and RAM, expand disk space, or switch to a larger plan.
When to Resize
Signs your Droplet needs more resources: consistently high CPU in monitoring graphs, out-of-memory kills in dmesg, slow page loads under traffic, or disk usage above 85%. DigitalOcean lets you resize without rebuilding from scratch.
Two Resize Options
- Resize (CPU and RAM only) — switches to a larger or smaller plan. Disk size stays the same. Fast, with only a few seconds of downtime.
- Resize with disk expansion — increases CPU, RAM, and disk. This is a one-way operation — you cannot shrink the disk afterward.
Step 1 — Power Off the Droplet
In the control panel, select your Droplet → Power → Turn Off. Resizing requires the Droplet to be off. Schedule this during a maintenance window and notify users if needed.
Alternatively, from the terminal: sudo shutdown -h now
Step 2 — Resize
Go to Resize in the left sidebar. Choose a new plan — you will see all available sizes with their CPU, RAM, and disk specs. Select CPU and RAM only for a reversible upgrade, or check Disk if you also need more storage.
Click Resize and wait for the process to complete (usually under a minute).
Step 3 — Power On and Verify
# After powering back on, SSH in and check resources
nproc # CPU cores
free -h # RAM
df -h # disk space
Expand Disk After CPU/RAM Resize
If you resized CPU/RAM without disk and later need more storage, you must power off again and resize with disk expansion. After booting, extend the filesystem:
sudo growpart /dev/vda 1
sudo resize2fs /dev/vda1 # for ext4
# or: sudo xfs_growfs / # for xfs
Alternative: Vertical vs Horizontal Scaling
- Vertical (resize): simpler, good until you outgrow the largest Droplet ($672/month, 32 vCPU)
- Horizontal (load balancer + multiple Droplets): better for high availability and traffic spikes
Before You Resize
- Take a snapshot — if anything goes wrong, you can restore
- Check whether your app benefits from more RAM vs more CPU
- Review pricing — the jump from 2 GB to 4 GB RAM is often the best value
Resizing is one of the biggest advantages of cloud hosting — no new hardware, no data migration, just a few clicks.