Help - Search - Members - Calendar
Full Version: stop all kind of updating
The Planet Forums > Control Panels > cPanel/WHM
dend
Hello everyone

how to stop cpanel from updating awstats and updating bandwidth ?

maybe stupid question by we have 1500+ accounts on server and maybe 5% of users check awstats so why do we need to update them at all ??

I have enabled "Enable users to update awstats from cpanel" and everybody are happy icon_smile.gif

but it looks like cpanel tries to update them again and again.. I always see /usr/local/cpanel/cpanellogd running and updating stats icon_sad.gif

How to stop that ?

Also I think cpanellogd also updates bandwidth usage yes?

So how to stop it ?

I will run /scripts/cleanbw once per 5 days via cron. I don't want to update bandwidth every day when load is high making it more high. and I will not die is someone will waste 100 mb over the limit but we will save a huge part of server cpu resources.

I have checked that the server load when cpanellogd is sleeping is 1-2 (note we host over 1500 domains) and when it is running load goes to 6-8.. (yes, it have to be so, because cpanel must process 1500 accounts but is it worth when only 5% of domain owners are interested in stats and 5% of all accounts use more that 500 mb bandwidth per month??)

Thanks for reading, all comments are welcome.
cyanide
ummm.. has it ever occurred to you, that maybe you have too many accounts on one server... 1500?
Don't tell me, you're one of those that charges 10 bucks a year icon_confused.gif
dend
no, we have mostly homepages with 100 visits per month..

only about 5% is active working websites

but cpanel is making problems from itself while updating 1.5k accounts.

please someone offer any solutions

thanks
richyc
You could select (under Tweak Settings) "The load average above the number of cpus at which logs file processing should be suspended" and set it to 0.00 which should stop _all_ log processing.

You could just try setting the above to 4 which may cure problems.

I'm not aware of a way (currently) for stats generation etc to be disabled on a site by site basis.
Paul
QUOTE (richyc)
You could select (under Tweak Settings)  "The load average above the number of cpus at which logs file processing should be suspended" and set it to 0.00 which should stop _all_ log processing.
I think setting it to 0 disables the limiting, perhaps 0.01 would be better if you're going to try that.
dend
I have set it to 2, but when load is 3-4 it still stats running and rung.

Moreover I have set log and bandwidth processing every 2 days but cpanellogd still updates it every 24 hours :/

cpanellogd does not respect big servers with lots of stuff
Jeff
Does your server become noticably less responsive when the load is between 6 and 8 during the log/stats run?

On my Superserver 2.8 with ~30 accounts, the load goes to between 8 and 10 when the stats run nightly, but it's still responsive.

However, when the backup runs, load goes to 20 and the server slows down a bit until it's finished.

Average 15-minute server load is 0.2
dend
it is strange but I see stats running whole day.
It looks like cpanellogd process one account then dies and waiting while load becomes low that set minimum (it is set to 1 when cpanellogd should suspend logs processing). So it runs whole day never stops ans causing loads.

I think how to rewrite cpanellogd file by removing all functions and update bandwidth from /scripts/cleanbw via cron and "Enable users to update awstats from cpanel"
eddy2099
You could try posting this in http://forums.cpanel.net . You might be able to get better responses there since that deals exclusively with everything related to cpanel. Just a thought.

You will need to register in their forum to be able to use it. You do not need to be a direct Cpanel customer to take advantage of it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.