Skip to main content

Module compute_planner

Module compute_planner 

Source
Expand description

Deployment-time compute planner.

The planner turns portable stack requirements plus a target platform into a renderable set of recommended deployment choices. It does not mutate the stack and does not require database access.

Structs§

ComputeMachineOption
One concrete provider machine option.
ComputePlan
Full compute plan for one stack/platform pair.
ComputePoolPlan
Planner output for one compute pool.

Constants§

GENERATED_POOL_MAX_MACHINES
Machine count up to which a setup offers choices for a pool the source does not declare.

Functions§

capacity_group_requirements
Convert a capacity group declaration into planner requirements.
check_pool_capacity
Rejects a selection whose largest fleet cannot hold the workloads at their desired replica counts. Like the per-container machine check, it compares hardware totals and does not model packing, so passing is necessary but not sufficient.
default_persistent_failure_domains
Failure-domain policy for a pool that hosts persistent stateful workloads when the deployment does not choose one: one provider-selected domain, so the pool’s machines and their volumes land in the same zone.
generated_pool_scale_policy
Allowed scale for a pool that no capacity group declares.
plan_compute
Compute a deterministic deployment-time plan.
validate_compute_pool_selection
Validate one selected compute pool against platform machine requirements and source-declared scale bounds.