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§
- Compute
Machine Option - One concrete provider machine option.
- Compute
Plan - Full compute plan for one stack/platform pair.
- Compute
Pool Data Disk Plan - Data disk sizes a deployment may choose for one pool, in whole GiB. A fixed
declaration has
min_gib == max_gib. A size of 0 runs the pool without a data disk, which only a range starting at 0 allows. - Compute
Pool Plan - Planner output for one compute pool.
- Container
Resource Plan - Deployment-time resource controls and effective allocation for one container.
Enums§
- Machine
Unavailable Reason - A pool requirement a machine does not meet.
Constants§
- GENERATED_
POOL_ MAX_ MACHINES - Machine count up to which a setup offers choices for a pool the source does not declare.
Traits§
- Machine
Room - What the cloud account can still launch, asked while pools choose their machines. The planner visits pools in order, so an implementation can hold back what earlier pools need before it answers for the next one.
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 after reserving host resources. It also checks that one replica fits; arbitrary multi-replica packing can still require runtime validation.
- 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.
- plan_
compute_ with_ room plan_compute_with_statewhere automatic selection takes the first series that has room for the pool’s machines, perroom.- plan_
compute_ with_ state - Plan a configuration update while retaining the installed machine architecture. Resource changes must not silently require a different workload image target.
- validate_
compute_ pool_ selection - Validate one selected compute pool against platform machine requirements and source-declared scale bounds.