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.

mlocate daily cron - do I really need it?

Discussion in 'Data Protection' started by cwalke32477, Mar 10, 2012.

  1. cwalke32477

    cwalke32477 Well-Known Member

    Joined:
    Mar 2, 2010
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, Georgia
    cPanel Access Level:
    Root Administrator
    I am having issues everynight with the mlocate daily cron causing excessive server loads, on my high density shared hosting server.
    From what I can see, it is just doing an updatedb for collecting file information for the locate command.
    Since I have about 500Gb's of data, it takes a long time to run, and creates high loads while it is running.
    It runs from 4am to 9am.
    I rarely ever use the locate command, and don't see a neccessity in updatedb running each night, if that is all it is for.

    Is there anything, internally, that cPanel needs to justify updatedb running each night? I do not recall this running on older versions of cpanel.
     
    #1 cwalke32477, Mar 10, 2012
    Last edited: Mar 10, 2012
  2. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    None of my servers execute it though. AFAIK, cPanel does not requires it to execute daily. You can stop it though.
     
  3. cwalke32477

    cwalke32477 Well-Known Member

    Joined:
    Mar 2, 2010
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, Georgia
    cPanel Access Level:
    Root Administrator
    It's in the /etc/cron.daily folder as filename mlocate.cron
    The daily crons run at 4am
    If you have it in there, then it's executing on your server too.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The mlocate.cron handles updatedb for using "locate" command on a machine as you've noted. If you do not use locate but instead use find, then you do not need mlocate.cron to run.
     
Loading...

Share This Page