Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 cwalke32477, Mar 10, 2012
    Last edited: Mar 10, 2012
  2. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    1
    Trophy Points:
    56
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cwalke32477

    cwalke32477 Well-Known Member

    Joined:
    Mar 2, 2010
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    56
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice