tft_notify_controller_prepare_action

Function

This API is called by MindCluster to notify MindIO TFT of the repair policy to be executed.

The repair policy must be within the scope of the available repair policies negotiated by MindCluster and MindIO TFT.

Format

mindio_ttp.controller_ttp.tft_notify_controller_prepare_action(action: str, fault_ranks: dict = None)

Parameters

Parameter

Mandatory/Optional

Description

Value

action

Mandatory

Subhealth migration action notified to MindIO TFT.

The value is of the string type. The following repair policies are supported:

  • hot switch
  • stop switch

fault_ranks

Optional

Information about the faulty NPU.

The value is a dictionary where keys are rank IDs (0 to 100,000) and values are errtype (0 to 2).

Return Value

  • 0: API call succeeded.
  • 1: API call failed.