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.
cat > deployment.json <<EOF{ "apiVersion": "runta/v1", "kind": "SandboxSet", "sandboxes": [ { "name": "<runtime_display_name>", "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 <runtime_display_name> free -mResize the runtime to 4096 MiB, then verify the new allocation:
runta resize <runtime_display_name> --memory 4096runta exec <runtime_display_name> free -mResize it back to 512 MiB and verify again:
runta resize <runtime_display_name> --memory 512runta exec <runtime_display_name> free -mClean up:
runta delete -f deployment.json