Vertical Scaling
Set resources.memory_mib to the initial memory allocation and
auto_resize.memory_max_mib to the maximum memory that the runtime can grow to.
The declarative config schema currently uses SandboxSet and sandboxes.
Each entry in sandboxes creates or updates one runtime.
cat > deployment.json <<EOF{ "apiVersion": "runta/v1", "kind": "SandboxSet", "sandboxes": [ { "name": "demo", "resources": { "vcpus": 1, "memory_mib": 512 }, "auto_resize": { "memory_max_mib": 16384 } } ]}EOFDeploy the runtime and check its initial memory:
runta apply -f deployment.jsonrunta ps -arunta exec demo free -mResize the runtime to 4096 MiB, then verify the new allocation:
runta resize demo --memory 4096runta exec demo free -mResize it back to 512 MiB and verify again:
runta resize demo --memory 512runta exec demo free -mClean up:
runta delete -f deployment.json