tensorlake/* images
can’t be resized live; recreate those with the new size instead.
What You Can Change
- CPUs: up or down, in whole vCPUs, with a minimum of 1.
- Memory: up is always possible. Down goes no lower than the memory the sandbox booted with, and only as far as the guest can free memory at that moment. Memory changes happen in 128 MiB steps.
- Disk: up only. The filesystem grows in place.
resources always hold the confirmed allocation, and resource_resize describes the latest generation with its
status: pending, succeeded, or failed.
Resize a Running Sandbox
Omitted dimensions keep their current allocation. A resize can’t be combined with name, port, or network changes in the same call.- CLI
- Python
- TypeScript
--wait-timeout changes the limit, and --no-wait returns as soon as the resize is admitted.Wait for a Resize Later
Return as soon as the resize is admitted and wait for its generation when convenient, for example from another process:- CLI
- Python
- TypeScript
--no-wait, tl sbx update prints the tl sbx wait command to run, including the generation.Resize and Snapshots
A memory snapshot records the resized allocation, so a sandbox restored from it starts with that size. The restored sandbox can be resized again, including shrinking memory down to the size the original sandbox booted with.See Also
CAS Images
The image format that makes a sandbox resizable.
Lifecycle
Sandbox states, timeouts, and suspend/resume.
Snapshot and Clone
Save and restore a resized sandbox.