Scale
Adjust regions, instances, and resource allocation.
Show current scaling
relight scale myapp
relight scale myapp --json
Set regions
relight scale myapp -r enam,weur
relight scale myapp --regions enam,weur,apac
Available region hints: wnam, enam, sam, weur, eeur, apac, oc, afr, me. These are translated to the closest provider region.
Set instances
relight scale myapp -i 3 # 3 instances per region
relight scale myapp -r enam,weur -i 2 # 2 instances in each region
Set resources
relight scale myapp --vcpu 1 --memory 512
relight scale myapp --instance-type standard
Instance type presets:
| Type | vCPU | Memory |
|---|---|---|
lite | 0.0625 | 128 MiB |
base | 0.5 | 256 MiB |
standard | 1 | 512 MiB |
large | 2 | 1024 MiB |
You can also set disk space:
relight scale myapp --disk 5000 # 5GB disk
List available regions
relight regions
relight regions --compute gcp
relight regions --json