Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Supervisord] Deduplicate the alerting messages of critical processes…
… from Supervisord. (sonic-net#6849) Signed-off-by: Yong Zhao [email protected] Why I did it In the configuration of rsyslog, duplicate messages will be suppressed and reported in the format of message repeated n times. Due to this behavior, if a critical process in a container exited unexpectedly, the alerting message will be written into syslog once and not be written into syslog anymore until the second critical process exited. This PR aims to differentiate these alerting messages such that they will not be suppressed by rsyslogd and can appear in the syslog periodically. How I did it This PR adds a counter into the alerting message and shows how many minutes a critical process was not running. How to verify it I verified and test this implementation on a physical DUT.
- Loading branch information