[nova] [keystone] Default logrotate configuration for apache2

thomas at goirand.fr thomas at goirand.fr
Thu Jun 15 06:06:59 UTC 2023


What you describe is one the reasons I decided to use uwsgi for all openstack API services in Debian (including keystone) for which copytruncate is fine. 


Thomas 


On Jun 14, 2023 1:48 PM, hai wu <haiwu.us at gmail.com> wrote:

It seems the default logrotate configuration for apache2 log files 
from vanilla OS installation is to do the following daily: 

postrotate 
                if invoke-rc.d apache2 status > /dev/null 2>&1; then \ 
                    invoke-rc.d apache2 reload > /dev/null 2>&1; \ 
                fi; 
endscript 

Sometimes I noticed that not all log entries would show up for the 
same day after apache2 got reloaded. 

Also it seems redhat openstack switched its logrotate config to use 
copytruncate instead of reloading apache2 iirc. 

Is there some known issues with reloading apache2 daily for logrotate 
config? Sometimes there are keystone 503 errors, and I am wondering if 
that's related to the logrotate default config to reload apache2 
daily.. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230614/44adf180/attachment-0001.htm>


More information about the openstack-discuss mailing list