Skip to main content

Module pool

Module pool 

Source

Structs§

ArtifactPaths
Paths to build artifacts within the pool’s artifact directory.
ArtifactSizes
Artifact file sizes in bytes for build reporting and size tracking.
BuildRevision
A completed build revision with artifact locations.
CanaryStrategy
Configuration for a canary deployment.
DesiredCounts
Desired instance counts by status, evaluated by the reconcile loop.
InstanceResources
Resource allocation for each instance in the pool.
PoolMetadata
Optional metadata for categorizing and tagging pools. Enables capability-based queries and policies without hardcoding types in Role enum.
PoolSpec
A WorkerPool defines a homogeneous group of instances within a tenant. Has desired counts but NO runtime state.
RegistryArtifact
Reference to pre-built artifacts in an S3-compatible registry. When present on a DesiredPool, the agent pulls artifacts from the registry instead of running a local Nix build.
RollingUpdateStrategy
Configuration for a rolling update.
RuntimePolicy
Per-pool runtime policy for minimum runtime enforcement and graceful lifecycle.
SecretScope
Scoped secret delivery: only give an integration the secrets it needs.
SleepPolicyConfig
Configurable thresholds for per-pool sleep policy.

Enums§

Role
Role for a pool’s instances. Determines services, ports, drive expectations, reconcile ordering, and sleep policy.
UpdateStrategy
Strategy for rolling out artifact updates to a pool’s instances.

Functions§

format_bytes
Format a byte count as a human-readable string (e.g. “45.2 MiB”).
pool_artifacts_dir
pool_config_data_dir
Directory for pool-level configuration data (mounted as config drive).
pool_config_path
pool_dir
pool_instances_dir
pool_snapshots_dir