ateworker

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckpointContext

func CheckpointContext(ctx context.Context) (context.Context, context.CancelFunc)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL