-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Core] Avoid metrics log noise when idle #8868
base: main
Are you sure you want to change the base?
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
458d399
to
1bd8e26
Compare
@russellb I think this is a great small QoL improvement. Is this still something get worked on? |
It's ready for review when someone has time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be great to have!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally like keeping the log as a sort of "heartbeat" to let me know the server is functioning fine even if there is nothing running. So I'm okay with this but would like another committer who feels more strongly about this as an improvement
I think the functionality of |
A compromise could be to emit them as DEBUG instead of INFO once the system goes idle. |
That sounds like a valid solution to me. Should also enable users who would prefer to have the logs enable it. Thoughts @mgoin ? |
Prior to this change, there was always a log message every 10 seconds, even when the system is idle. The noise when the metrics are all zeros doesn't seem very interesting, so this change makes it so the log message is only emitted while active. It will log a message whenever metrics are non-zero, or when returning to idle from non-idle. Repeated messages during idle now go to DEBUG instead of INFO. Signed-off-by: Russell Bryant <[email protected]>
1bd8e26
to
1a789ae
Compare
I updated the PR to do this. |
@mgoin can we go ahead with this approach? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah let's go with this, thanks!
Just to check, do we have other DEBUG logging? Like if I enabled DEBUG would I see lots of other logs and even slow the performance? |
1a789ae [Core] Avoid metrics log noise when idle
commit 1a789ae
Author: Russell Bryant [email protected]
Date: Thu Sep 26 20:56:41 2024 +0000