-
Notifications
You must be signed in to change notification settings - Fork 189
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
[Feature Request] Random Wait functionality #428
Comments
Do you trigger logrotate by the systemd timer? The |
This seems to be a duplicate of #403. See #403 (comment) for a suggested solution. Another idea is to use |
No, it doesn't. The requestor wants logrotate to wait a random time between actual log rotation (which causes next to no load) and the compression (which causes load). Your suggestion will also spread out the rotation, making it significantly harder to put logs taken around the rotation time on different machines side-by-side. |
For environments with hundreds of VMs and large amounts of logging, it would be beneficial to have the option to run the logrotate at the same time (e.g., midnight) for all servers but allow them to pause for a random time (e.g., anywhere from 0 seconds to 6 hours, etc.) to more evenly distribute the processing load to compress so many files on so many servers. This would reduce nightly large CPU spikes across large clusters of hypervisors but still allow logs to be rotated at midnight sharp.
The text was updated successfully, but these errors were encountered: