Documentation
¶
Index ¶
- func CheckpointContext(ctx context.Context) (context.Context, context.CancelFunc)
- func RecordCheckpoint(checkpointDir, bootID string, fidelity ateworkerpb.SnapshotFidelity, ...) error
- func ReuseCheckpoint(checkpointDir, bootID string, fidelity ateworkerpb.SnapshotFidelity) *ateworkerpb.CheckpointWorkloadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckpointContext ¶
CheckpointContext returns the context a CheckpointWorkload runs in once it holds the actor's lock. It keeps ctx's values and deadline but not its cancellation, so atelet going away does not cancel a checkpoint that may already have stopped the workload.
func RecordCheckpoint ¶
func RecordCheckpoint(checkpointDir, bootID string, fidelity ateworkerpb.SnapshotFidelity, resp *ateworkerpb.CheckpointWorkloadResponse) error
RecordCheckpoint writes the completion marker into checkpointDir so a retry after a caller timeout or atelet restart on the boot bootID can reuse the finished CheckpointWorkloadResponse.
func ReuseCheckpoint ¶
func ReuseCheckpoint(checkpointDir, bootID string, fidelity ateworkerpb.SnapshotFidelity) *ateworkerpb.CheckpointWorkloadResponse
ReuseCheckpoint returns the recorded CheckpointWorkloadResponse from checkpointDir if the completion marker exists, was recorded on the boot bootID, its fidelity matches, and all listed snapshot files are still present on disk.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package actornet provides shared networking configuration logic for Substrate runtime agents.
|
Package actornet provides shared networking configuration logic for Substrate runtime agents. |
|
Package cgroup delegates the worker pod's cgroup to the worker so each actor can get a leaf of its own.
|
Package cgroup delegates the worker pod's cgroup to the worker so each actor can get a leaf of its own. |
|
Package memborrow lends snapshot writes the worker pod's unbooked, free memory for their page cache, and holds back placements that would grow into it until it is written back.
|
Package memborrow lends snapshot writes the worker pod's unbooked, free memory for their page cache, and holds back placements that would grow into it until it is written back. |
|
Package phaselog renders the per-actor "timing breakdown" log record an worker emits for each checkpoint and restore.
|
Package phaselog renders the per-actor "timing breakdown" log record an worker emits for each checkpoint and restore. |
|
Package pid1 runs a minimal init as PID 1 so worker doesn't have to.
|
Package pid1 runs a minimal init as PID 1 so worker doesn't have to. |
|
Package register registers a worker process with the control plane through the node-local atelet: it acquires an epoch, registers once with that epoch, its pod IPs and its compute capacity, then reports the sandbox runtimes of its pool.
|
Package register registers a worker process with the control plane through the node-local atelet: it acquires an epoch, registers once with that epoch, its pod IPs and its compute capacity, then reports the sandbox runtimes of its pool. |
|
Package suspend asks the control plane, through the node-local atelet, to suspend an actor a worker hosts.
|
Package suspend asks the control plane, through the node-local atelet, to suspend an actor a worker hosts. |