Skip to content

Resize

The supervisor reports sustained cpu and memory pressure (kernel PSI), and pier resize fixes it without losing anything:

$ pier ls
NAME REPO STATE AGE COST
checkout-flow shop working (strained) 2h ~$0.04/h
$ pier resize checkout-flow t4g.xlarge

Or press m in the TUI. It lists same-arch machines with their vCPU, memory and hourly cost, so nobody memorizes instance type names.

One park/resume cycle of about 40 seconds, disk and state intact.

The VM holds no cloud credentials, so it cannot resize itself. Auto-scaling is also a surprise-cost footgun. You see strain, you decide.

Resize stays within the CPU arch (t4g to t4g). Providers only allow type changes on stopped instances, which is where the park/resume cycle comes from. It needs one extra AWS permission, ec2:ModifyInstanceAttribute.