Skip to content

HealthMonitoring

Source code in docs_src/capo_pcs/types/health_monitoring.py
class HealthMonitoring(TypedDict, closed=True):
    mode: NotRequired["capo_pcs.types.health_monitoring_mode.HealthMonitoringMode"]
    """<p>The health monitoring mode. This value is required when you specify <code>healthMonitoring</code>. There is no default value. Valid values:</p> <ul> <li> <p> <code>NONE</code> – Turns off health monitoring. You can't specify <code>repairAction</code> with this mode.</p> </li> <li> <p> <code>STANDARD</code> – Continuously checks running instances for hardware and software faults.</p> </li> </ul>"""
    repair_action: NotRequired[
        "capo_pcs.types.health_monitoring_repair_action.HealthMonitoringRepairAction"
    ]
    """<p>The action that PCS takes when health monitoring finds a fault on an instance. You can't specify this value when <code>mode</code> is <code>NONE</code>. If you don't specify this value and <code>mode</code> isn't <code>NONE</code>, PCS uses <code>AUTO</code>. <code>GetComputeNodeGroup</code> doesn't return a <code>repairAction</code> that you didn't specify. Valid values:</p> <ul> <li> <p> <code>AUTO</code> – PCS chooses the repair action based on the fault.</p> </li> <li> <p> <code>REPLACE</code> – Replaces the instance after running jobs finish.</p> </li> <li> <p> <code>ISOLATE</code> – Stops new jobs on the instance and keeps the instance running until you investigate.</p> </li> <li> <p> <code>NONE</code> – Records the fault in Slurm and leaves the instance available for jobs.</p> </li> </ul>"""

mode instance-attribute

mode: NotRequired[HealthMonitoringMode]

The health monitoring mode. This value is required when you specify healthMonitoring. There is no default value. Valid values:

  • NONE – Turns off health monitoring. You can't specify repairAction with this mode.

  • STANDARD – Continuously checks running instances for hardware and software faults.

repair_action instance-attribute

repair_action: NotRequired[HealthMonitoringRepairAction]

The action that PCS takes when health monitoring finds a fault on an instance. You can't specify this value when mode is NONE. If you don't specify this value and mode isn't NONE, PCS uses AUTO. GetComputeNodeGroup doesn't return a repairAction that you didn't specify. Valid values:

  • AUTO – PCS chooses the repair action based on the fault.

  • REPLACE – Replaces the instance after running jobs finish.

  • ISOLATE – Stops new jobs on the instance and keeps the instance running until you investigate.

  • NONE – Records the fault in Slurm and leaves the instance available for jobs.