-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsq_to_file: log less (or support a "quiet mode") #880
Comments
@dominicbarnes can you give some context as to your nsq_to_file configuration and volume? How often is the For some context, I log many high volume datastreams, but i run my nsq_to_file with
|
I sampled a single machine, and I saw 50+ logs/second on average. Each had <100 records being flushed to disk. My relevant configuration looks like:
What config in general impacts how often flushing to disk happens? |
There are two aspects. One is The second is that nsq_to_file will always flush at least once every 30 seconds. |
Looks like #892 will land soon and we can apply the same to the other utility applications. |
see #1117 |
Currently,
nsq_to_tail
is logging each time it flushes to disk, which ends up being a lot especially when the nsq topic has a non-trivial volume of data. It would be really great if there were ways to tellnsq_to_file
to log less frequently. (like, errors only)I know the internals are just using the golang
log
package, so adding levels like "debug" and such aren't available as a feature there, but it would be great if something similar could be implemented.The text was updated successfully, but these errors were encountered: