Expand description
Instance type catalog and selection algorithm for cloud compute infrastructure.
This module provides:
- A static catalog of known instance types across AWS, GCP, and Azure
- Resource quantity parsing (CPU strings, Kubernetes-style memory/storage quantities)
- An algorithm to select the optimal instance type for a given workload
The catalog is the single source of truth for instance type specifications.
It is used by the preflights system to automatically populate CapacityGroup.instance_type
and CapacityGroup.profile based on the containers in a stack.
Structs§
- Catalog
Gpu - Static GPU specification for catalog entries (no heap allocation).
- Instance
Selection - Result of instance type selection.
- Instance
Type Spec - A known instance type with its hardware specifications.
- Workload
Requirements - Aggregated resource requirements from all containers in a capacity group.
Enums§
- Architecture
- CPU architecture.
- Instance
Family - Instance family classification.
Functions§
- catalog_
for_ platform - Get all instance types for a given platform.
- find_
instance_ type - Find a specific instance type by name and platform.
- parse_
cpu - Parse a CPU quantity string to f64.
- parse_
memory_ bytes - Parse a memory or storage quantity string to bytes.
- select_
family - Select instance family based on workload characteristics.
- select_
instance_ type - Select the best instance type for a workload on a given platform.