Skip to content
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

Reduce default logging verbosity #11

Open
nkinkade opened this issue Aug 25, 2023 · 0 comments
Open

Reduce default logging verbosity #11

nkinkade opened this issue Aug 25, 2023 · 0 comments

Comments

@nkinkade
Copy link
Contributor

It would appear that the default verbosity of logging is higher than desirable under normal operating conditions. In an attempt to lower the sheer volume of container logs in M-Lab GCP accounts, I started doing some investigation into where the logs were coming from. M-Lab definitely has some chatty sidecar services, but what really stood out to me was the volume of logs for some nodes coming from revtr. For example, for M-Lab machine mlab1-lga08 there are nearly 16,500,000 log entries from revtr over the past 7 days. The logs seem to come in bursts. At the highest rates, at least on this machine, revtr can generate in excess of 500,000 log entries per hour.

As a workaround from the M-Lab perspective, we are going to stop pushing revtr logs to GCP. The logs will still exist in kubernetes for some amount of time, but will no longer be pushed to GCP for slightly longer retention times (30d).

It seems like it might be a good idea to at some point implement some sort of leveled/structured logging where what might be generally considered INFO or DEBUG level message are only emitted via some sort of debug flag, and by default only warning or error message logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant