If you want to customize the fault level, create a fault code configuration file and pass the file as the value of the -faultConfigPath parameter when starting Container Manager. The following uses a node status detection fault (dmp_daemon) with fault code 80E21007 as an example. To change the fault handling policy from NotHandleFault to RestartNPU, perform the following steps:
vi faultCode.json
"NotHandleFaultCodes":[ "80E21007","80E38003","80F78006","80C98006","80CB8006","81318006","80A18006","80A18005","80FB8000","8C1F8609", ... ], ...
You can configure multiple fault levels for a fault code, but the fault is handled as the configured highest level by default.
"NotHandleFaultCodes":[ "80E38003","80F78006","80C98006","80CB8006","81318006","80A18006","80A18005","80FB8000","8C1F8609", ... ], ... "RestartNPUCodes":[ "8C204E00","A8028802","A4302003","A4302004","A4302005","A4302006","A4302009","A430200A","80CF8009","80CF8008","80E21007",... ... ],
systemctl daemon-reload && systemctl restart container-manager.service # Reload the service configuration and restart the installed Container Manager.
If "load custom fault config file from /home/container-manager/faultCode.json success" is displayed in the log, the fault code is configured successfully.