-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log spam from orchagent supervisord #21157
Comments
@liuh-80 - please help take a look |
stdout_capture_maxbytes will not generate new syslog, it just will capture process stdout and filter heartbeat message I checked the PR https://github.com/sonic-net/sonic-buildimage/pull/15429/files#diff-36bcb1718eaced89b21a75ef897cd156ba095e04b798915579ac758630007e62 Not found any code print these log |
Will check where the code prints these logs and remove them, these are not part of heartbeat message: |
Test with a POC image: After remove stdout_capture_maxbytes, there are following heartbeat message: 2024 Dec 23 12:48:13.849809 vlab-01 INFO swss#supervisord: orchagent heartbeat So stdout_capture_maxbytes does not generate any new log, it just cache stdout for filter. After enable stdout_capture_maxbytes, the message between and will be captured/removed from stdout and convert to systemd message and send to proc-exit-listener. so there is only follow log left in syslog: swss#supervisord: orchagent For other logs, after check both latest master branch and POC image, I can't find following log: |
@mint570 , can you share me the image version you get following logs, I can't find it in latest master image: |
Also by remove following config, we can mitigate this issue, but I think this is by design: [program:orchagent] |
We used a custom image based on 202305 branch. We cannot remove the "stdout_syslog=true" config as it is by design. |
@mint570 , I checked with latest 202305 branch image, can't find following logs, please check your custom image to make sure it's not cause by code change in your custom image: swss#supervisord: RESULT 2 Here is the image I use: SONiC Software Version: SONiC.202305.728811-7b88a427b |
Description
The following logs spam in syslog about every 10 seconds:
This is due to the "stdout_capture_maxbytes=1MB" supervisord config in orchagent introduced by the watchdog change: #15429
For devices with limited storage, this fills up the log faster than necessary.
Is there a way to implement the watchdog feature without printing the "heart beat" messages?
Steps to reproduce the issue:
Check /var/log/syslog file
Describe the results you received:
N/A
Describe the results you expected:
N/A
The text was updated successfully, but these errors were encountered: