desiguru

Well-Known Member
Aug 27, 2008
73
0
56
My server's HTTP goes down every time log rotation runs. Is there a fix for this?
 

everactive

Member
Jan 10, 2010
7
0
51
>> Main >> Server Configuration >> Tweak Settings >> The load average above the number of cpus at which logs file processing should be suspended (default 0)

Set this option to 6.
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
Yes, increase the value under Tweak Settings. BTW, how many domains you have on your server? If they are large in number it's not feasible to rotate them every 4-5 hours and also it puts additional strain on the server during the process. Rotate them every 12 hours and also monitor the Apache logs to see what error you receive when he process is stopped.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
The rotation performed by cpanellogd is dictated by the size of the file, rather than the age.

Log rotation, by necessity, requires a restart of the service. This is true whether the service is MySQL, Apache or any other service.
 

desiguru

Well-Known Member
Aug 27, 2008
73
0
56
Check the Apache error logs at



during the log rotation and see what error exact you receive.
Here is whet I receive exactly.


[Thu Jan 14 21:14:54 2010] [notice] Graceful restart requested, doing restart

How come a graceful restart gets requested and server just stops serving HTTP requests?