sandbox hotplug-memory command dynamically adjusts the memory of a running sandbox without restarting it. This is useful when a workload needs more memory than initially provisioned, or when you want to release extra memory once it is no longer needed.
Prerequisites
- Set the
NOVITA_API_KEYenvironment variable. - A running sandbox created from a hotplug-enabled template.
Usage
CLI
hp.
CLI
Arguments
Unplug all hotplugged memory
Pass0 to remove all previously hotplugged memory, returning the sandbox to its base allocation.
CLI
Output and errors
- On success, the CLI prints a confirmation such as
Memory hotplug complete: sandbox sbx-123 set to 2048 MiB. - If the sandbox ID is not found, the CLI prints
Sandbox sbx-123 wasn't foundand exits with code1. - Any other error is printed and the CLI exits with code
1.