Scaling up and down

Edited

Read all three steps once before running the first one; some of them use names from earlier ones.

Before You Begin

  • Permission to change the project (editor or higher)
  • hare from the last few months
  • The account area open in a second tab

How to Do It

  1. 01

    Look at the Current Size

    Note the current size and disk from hare server describe node1.

  2. 02

    Pick the New Size

    hare size list lists every size with its price.

  3. 03

    Resize

    Run hare server resize node1 --size s; the node reboots once and keeps its address.

hare server describe node1
hare size list
hare server resize node1 --size s --wait

The IP address and any volumes remain the same, so DNS entries and scripts need no edits.

Check the Result

After the restart, hare server describe node1 lists the new size, and nproc and free -h inside the machine match.

Going Back

CPU and memory can go back down with another resize, but the disk can't shrink: a smaller size is only offered if its disk is at least as big as the current one.

Expect one restart during a resize and choose a quiet time for it.