(Optional) Configuring the Handling Policy for Associated Faults

Two configuration files of associated faults are embedded in ClusterD image. When ClusterD is started, the default configurations in the two files are read as the basis for fault handling.

If you want to customize associated fault codes and handling policies, modify the relationFaultCustomization.json and faultDuration.json configuration files when creating the ClusterD image.

Procedure

The following uses RelationFaults 81078603 and TriggerFault 8C1F8609 as an example. If the fault 81078603 is generated, ignore the fault 8C1F8609 within 60 seconds after it is generated, and isolate the job where the fault 81078603 is generated. Then, you can manually set the handling policy of the associated faults to Separate.

  1. Log in to the environment and go to the directory where the ClusterD package is decompressed.
  2. Run the vi relationFaultCustomization.json command to edit the configuration file.
    vi relationFaultCustomization.json
    Associate the two faults. After the modification, press Esc, enter :wq!, save the configuration, and exit.
    
      {
        "TriggerFault": "8C1F8609",
        "RelationFaults": [
          "81078603"
        ],
        "FaultStrategy": "Separate"
      }
    ...
  3. Run the vi faultDuration.json command to edit the configuration file.
    vi faultDuration.json
    Set the fault type and fault association time. After the modification, press Esc, enter :wq!, save the configuration, and exit.
    ...
      {
        "FaultCode": "81078603",
        "FaultType": "faultDevice",
        "TimeOutInterval": 60
      }
    ...