The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

100% uptime with cPanel while log rotation and processing

Discussion in 'General Discussion' started by desiguru, Mar 15, 2010.

  1. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  2. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    Spread rotating logs out, don't process some, upgrade server RAM, etc.
     
  3. desiguru

    desiguru Well-Known Member

    Joined:
    Aug 27, 2008
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    RAM is already at 8GB. How do I spread out the timing for log rotation?
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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.
     
  5. UNIXy

    UNIXy Well-Known Member

    Joined:
    Sep 21, 2009
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Houston, Texas, USA
    cPanel Access Level:
    DataCenter Provider
    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
     
  6. charliesxia

    charliesxia Member

    Joined:
    Aug 3, 2006
    Messages:
    18
    Likes Received:
    1
    Trophy Points:
    0
    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.
     
  7. DomineauX

    DomineauX Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    414
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Have you looked at using the piped log option that was added recently?

    Main >> Service Configuration >> Apache Configuration >> Piped Log Configuration
     
Loading...

Share This Page