one icon indicating copy to clipboard operation
one copied to clipboard

Fast logrotate on service start

Open vholer opened this issue 4 years ago • 0 comments

Description With big historic logs, the log rotate on service start can vastly extend the start time or even timeout the service start as it tries to compress the old logs. The logrotate should be as quick as possible, the compression should be handled asynchronously on the OpenNebula services (e.g., as part of the nightly logrotates only).

To Reproduce Generate a big log for oned/monitor (e.g. 20G), restart the service several times (first restart might be quick).

Expected behavior Service restart is quick, no compression happens.

Details

  • Version: 5.12+

Progress Status

  • [ ] Branch created
  • [ ] Code committed to development branch
  • [ ] Testing - QA
  • [ ] Documentation
  • [ ] Release notes - resolved issues, compatibility, known issues
  • [ ] Code committed to upstream release/hotfix branches
  • [ ] Documentation committed to upstream release/hotfix branches

vholer avatar Apr 09 '21 08:04 vholer