pub struct CapacityGroup {
pub group_id: String,
pub instance_type: Option<String>,
pub profile: Option<MachineProfile>,
pub min_size: u32,
pub max_size: u32,
pub scale_policy: Option<CapacityGroupScalePolicy>,
pub nested_virtualization: Option<bool>,
}Expand description
Capacity group definition.
A capacity group represents machines with identical hardware profiles. Each group becomes a separate Auto Scaling Group (AWS), Managed Instance Group (GCP), or VM Scale Set (Azure).
Fields§
§group_id: StringUnique identifier for this capacity group (must be lowercase alphanumeric with hyphens)
instance_type: Option<String>Provider machine selected at deployment time.
alien.ts should declare portable requirements; preflight materialization
fills this field from StackSettings.compute.
profile: Option<MachineProfile>Machine resource profile (auto-derived from instance_type if not specified)
min_size: u32Minimum number of machines (can be 0 for scale-to-zero)
max_size: u32Maximum number of machines (must be ≤ 10)
scale_policy: Option<CapacityGroupScalePolicy>Source-declared scale policy and installer-editable bounds.
Older stacks only have minSize and maxSize; planners derive an exact
fixed/autoscale policy from those selected bounds when this field is absent.
nested_virtualization: Option<bool>Require instance types that expose nested virtualization (VT-x/EPT) to guest VMs. This is needed by workloads that boot nested VMs inside containers. When true, the controller’s instance-type selector is constrained to a vetted nested-virt-capable allowlist.
Trait Implementations§
Source§impl Clone for CapacityGroup
impl Clone for CapacityGroup
Source§fn clone(&self) -> CapacityGroup
fn clone(&self) -> CapacityGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapacityGroup
impl Debug for CapacityGroup
Source§impl<'de> Deserialize<'de> for CapacityGroup
impl<'de> Deserialize<'de> for CapacityGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CapacityGroup
impl PartialEq for CapacityGroup
Source§fn eq(&self, other: &CapacityGroup) -> bool
fn eq(&self, other: &CapacityGroup) -> bool
self and other values to be equal, and is used by ==.