Ability to schedule log rotation
Currently cPanel onlly allows to rotate logs based on file size, and that can happen at any given time of day without control.
Log rotation always triggers a Apache reload, and that can disrupt service availability.
With some configurations (e.g when using mod_passenger for serving sites based on Node.js apps) a reload is known to *always* cause downtime since all applications are restarted. The more sites based on this technology a server has, the greater the probability a log rotation will happen at any time of day without any possibility of it being controlled, thus one or many reloads with extended periods of downtime due to many apps being restarted each time .
Please note that cPanel support is aware of this issue, as informed in a support ticket.
This limitation could easily be mitigated if the log rotation process could be scheduled by the system administrators to run only at non-production hours, such as having an option to ensure that log rotation is only triggered during a configurable schedule (for example, between 2 AM and 5 AM when it's not a problem if one has 5 minutes of downtime).
Replies have been locked on this page!