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.
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.
vi relationFaultCustomization.json
…
{
"TriggerFault": "8C1F8609",
"RelationFaults": [
"81078603"
],
"FaultStrategy": "Separate"
}
...
vi faultDuration.json
...
{
"FaultCode": "81078603",
"FaultType": "faultDevice",
"TimeOutInterval": 60
}
...