When I server process logs and/or rotates logs it goes down for four - five minutes. Is there a way I can process this logs without experiencing this down time?
When I server process logs and/or rotates logs it goes down for four - five minutes. Is there a way I can process this logs without experiencing this down time?
Spread rotating logs out, don't process some, upgrade server RAM, etc.
.
RAM is already at 8GB. How do I spread out the timing for log rotation?
If you have 8 GB and going down at log rotation, you got me really curious about your traffic patterns and server configuration as something is definitely not kosher there.
Logrotate is a mature unix utility in the sense that it's highly customizable. You could for example configure it to rotate the logs daily so the size of the logs don't get out of control and take longer to complete (see man logrotate). Or better, you could set the variable minsize to a reasonable number so the logs get rotated as soon as they reach X size in bytes. Check out logrotate.conf under /etc/.
A mixture of the above settings can greatly reduce the perceived down time.
Regards
Joe / UNIXY
- Truly Fully Managed Servers http://unixy.net/
- Fastlayer.com: Varnish for the cloud.
- cPanel Varnish Plugin
I have a large logfles. I set the log files to null .
suggest to add option to cancel the log files in system and apache.
Have you looked at using the piped log option that was added recently?
Main >> Service Configuration >> Apache Configuration >> Piped Log Configuration
Tony Kammerer - Senior Admin, United Communications Ltd.
Proudly hosting over 50,000 customer websites since 1998!
Our lively customer community with over 70,000 posts!