Skip to content

ComputeNodeGroupSlurmConfiguration

Source code in docs_src/capo_pcs/types/compute_node_group_slurm_configuration.py
class ComputeNodeGroupSlurmConfiguration(TypedDict, closed=True):
    scale_down_idle_time_in_seconds: NotRequired["int"]
    """<p>The time (in seconds) before an idle node is scaled down. If not specified, the cluster-level setting applies. This overrides the cluster-level <code>scaleDownIdleTimeInSeconds</code> setting. A value of <code>-1</code> removes the override and applies the cluster-level setting to this compute node group. Requires Slurm version 25.11 or later.</p>"""
    slurm_custom_settings: NotRequired[
        "capo_pcs.types.slurm_custom_settings.SlurmCustomSettings"
    ]
    """<p>Additional Slurm-specific configuration that directly maps to Slurm settings.</p>"""
    gres_custom_settings: NotRequired[
        "capo_pcs.types.gres_custom_settings.GresCustomSettings"
    ]
    """<p>The additional Slurm <code>gres.conf</code> records for the compute node group. Each item is a map of <code>gres.conf</code> attribute names to values that describes one <code>gres.conf</code> record, such as a GPU topology, MIG, MPS, or custom GRES entry. PCS adds the <code>NodeName=</code> prefix and merges these records with the GPU record it derives from the instance type.</p>"""

gres_custom_settings instance-attribute

gres_custom_settings: NotRequired[GresCustomSettings]

The additional Slurm gres.conf records for the compute node group. Each item is a map of gres.conf attribute names to values that describes one gres.conf record, such as a GPU topology, MIG, MPS, or custom GRES entry. PCS adds the NodeName= prefix and merges these records with the GPU record it derives from the instance type.

scale_down_idle_time_in_seconds instance-attribute

scale_down_idle_time_in_seconds: NotRequired[int]

The time (in seconds) before an idle node is scaled down. If not specified, the cluster-level setting applies. This overrides the cluster-level scaleDownIdleTimeInSeconds setting. A value of -1 removes the override and applies the cluster-level setting to this compute node group. Requires Slurm version 25.11 or later.

slurm_custom_settings instance-attribute

slurm_custom_settings: NotRequired[SlurmCustomSettings]

Additional Slurm-specific configuration that directly maps to Slurm settings.