PDA

View Full Version : How to disable GZIP after log rotate?



vipraptor
11-23-2007, 04:06 PM
I have very high loaded server, I run tally cron rotation every 6 hours.
,beacause every 6 hours, access_log size reaches about 1.5-2.4 GB size.
but every time after log rotate complete, begins GZIP (that compress roteted log) process - consumes very much processor & mem resources, which with ingoing http request makes server almost inoperable ( load level: 20 and more ) for 10-15 min, and than starts dataskq that consumes almost every all processor resource for 10-15 min.
So i have delays in server's work about 40 mins a day.

All other time (before rotate and after 30 min of rotate) server works smoothly, about 500 processes and 1-3 load level.

Is any way to disable GZIP logs? ( i don't need to store arhives of logs )
and make dataskq to consume less resources (lower priority?) after log rotation.

Thanks!

jamin1317
11-25-2007, 09:30 PM
If you really don't care about the log files and dont care if webalizer processes them but you still want directadmin to tally the bandwidth you can try having cron delete all the log files just before the tally is run. Only the .bytes files are needed for the tally.

rm -f /var/log/httpd/domains/*.log

To keep DA from trying to rotate missing log files you might also want to try turning off the log rotation all together. Set logs_to_keep=0 in /usr/local/directadmin/conf/directadmin.conf

agnivo007
11-27-2007, 08:34 AM
You can also set logs_to_keep through the DA admin interface.