DeployingScaling

Scaling

Scale a service horizontally (more replicas) or vertically (more CPU/memory) with lizard scale. Addon storage is grown the same way.

Scale a service

lizard scale --service api --replicas 3
lizard scale --service api --cpu 2 --memory 2048
FlagApplies toAllowed values
--replicas <n>apps110
--cpu <cores>appswhole cores: 1, 2, 3, 4
--memory <mb>apps1288192 MB (1 MB steps)
--storage <mb>addons only, grow-only512, 1024, 2048, 4096, 8192, 16384

You can combine flags in a single command. Replica changes roll out without a rebuild.

Horizontal scaling

Run multiple replicas of an app behind the load balancer:

lizard scale --service api --replicas 5

Each replica is its own Firecracker micro-VM. Make sure your app is stateless (store state in Postgres, Redis, or S3) so replicas are interchangeable.

Vertical scaling

Give a single replica more resources:

lizard scale --service api --cpu 4 --memory 8192

Growing addon storage

Addon data volumes are grow-only — you can increase storage but not shrink it:

lizard scale --service postgres --storage 8192

Verifying

lizard ps                 # replica status + URL
lizard events             # per-replica deploy/scale history
lizard metrics            # live CPU / memory / network / disk
lizard metrics --cost     # include cost

See Observability → Metrics for resource and cost monitoring.