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

Unclear description of workerInterval vs. rotateInterval #191

Open
KingSupernova31 opened this issue Aug 26, 2024 · 1 comment
Open

Unclear description of workerInterval vs. rotateInterval #191

KingSupernova31 opened this issue Aug 26, 2024 · 1 comment

Comments

@KingSupernova31
Copy link

I don't understand the difference between these two settings. If I stick with the defaults, will oversized log files be cleared once a day, or once every 30 seconds? The documentation should be clearer about what exactly is occurring at each of these intervals.

@SCHrodrigo
Copy link

workerInterval is the interval to check if the log's size has reached max_size. So, in case the applications generate a lot of messages, the interval should be smaller to prevent the file's size to go beyond the max_size.

rotateInterval defines when the log rotates, no matter the size.

It seems they could be use together with workerInterval preventing the rotations from rotateInterval into making files too big.

image
In the image, the worker, in it's 5th iteration of it's interval, checked the size and noted it was higher than maxSize, so it split into another file. Once the rotateInterval was reached, the file was also split.

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

3 participants
@KingSupernova31 @SCHrodrigo and others