Checkpoint/restore runc
Prerequisites
Create an account with Cedana, to get access to the GPU plugin. See authentication.
Set the Cedana URL & authentication token in the configuration.
Install the runc plugin with
sudo cedana plugin install runc
.Ensure the daemon is running, see installation.
Do a health check to ensure the plugin is ready, see health checks.
Basic
Run a new runc container, for example:
sudo runc run --detach <container_id> --bundle ./my-bundle
Checkpoint:
cedana dump runc <container_id> --dir <dump-dir>
Restore:
cedana restore runc --bundle ./my-bundle --path <path-to-dump>
Managed
Run a new managed runc container:
cedana run runc --attach --jid <job_id> --bundle ./my-bundle
Checkpoint:
cedana dump job <job_id>
Restore:
cedana restore job --attach <job_id>
GPU support
Just like for processes, as explained in checkpoint/restore with GPUs, GPU support is also available for managed runc containers.
Run a new managed runc container with GPU support:
cedana run runc --attach --gpu-enabled --jid <job_id> --bundle ./my-bundle
Checkpoint:
cedana dump job <job_id>
Restore:
cedana restore job --attach <job_id>
For all available CLI options, see CLI reference. Directly interacting with daemon is also possible through gRPC, see API reference.
Last updated
Was this helpful?