1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Set-up Apache piped logs (/usr/sbin/rotatelogs) to stop APC cache refreshing daily

Discussion in 'Server Configuration and Hosting' started by CyclingTribe, Jan 13, 2013.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    Having moved to a new server last week I'm still fiddling with the configuration and one thing I've come across (that was probably present on my previous server but I never noticed because I didn't have munin with APC cache recording) is that when Apache logs are rotated in the early hours of each day the APC cache is cleared.

    The server then rebuilds the cache the following day only to have it reset again when the next log rotation cron event happens. A daily build and trash of the APC cache.

    I've read-up on piped logs using rotatelogs but there's never any mention of whether you need to disable the Apache part of the scheduled cron log rotation and whether rotated logs are deleted after a period or whether rotatelogs just continues creating new logs indefinitely (and you have to manually prune log directories)?

    Any of you using rotatelogs instead of the default logrotate?

    Or maybe the alternative cronolog?

    Cheers,
    Shaun :D
     
  2. p4guru

    p4guru Well-Known Member

    Don't really see it as a problem, think of it as a automatic clearing of APC cache fragmentation on daily basis :D
     

Share This Page