RodrigoDLopez opened a new pull request, #6507: URL: https://github.com/apache/cloudstack/pull/6507
### Description Currently, the frequency of execution of the logrotate service, in virtual routers, is defined to be executed every hour, and it is not possible to change this value via ACS. This behavior has been fixed so that the operator is now able to define this interval using the global configuration `router.logrotate.frequency`, which follows the pattern adopted by the onCalendar field of the Systemd Timers tool. Such a pattern uses the format: [* *-*-* *:*:*] which means [<DAY_OF_WEEK> <YEAR>-<MONTH>-<DAY> <HOUR>:<MINUTE>:<SECOND>]. However, the ACS uses only the last block of this format, that is, [<HOUR>:<MINUTE>:<SECOND>], since the use cases presented show that times greater than 24 hours lead to problems in the VRs resulting from discharge disk space usage. The default value for this setting was kept, being represented by: *:00:00 (hourly). The table below represents some of the possible values and their meanings: | Valor | Significado | |---------------|-----------------------------------| | \*:\*:00 | Todo Minuto | | \*:\*/15:00 | A cada 15 minutos | | \*:00:00 | Toda hora | | \*/2:00:00 | A cada 2 horas | | 00:00:00 | Todo dia exatamente às 00:00:00 | **Note**: the minimum file size is fixed at 10M, which means that the logrotate service will run, but it will not rotate the log files if it does not reach the minimum size. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [x] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) #### Feature/Enhancement Scale - [ ] Major - [x] Minor ### How Has This Been Tested? Changing the value of `router.logrotate.frequency` and checking if this value has been applied in the VR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
