ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   AWStats - generation of stats makes huge load avg (http://forum.ispsystem.com//showthread.php?t=1802)

psidlo 02-29-2012 05:38 PM

AWStats - generation of stats makes huge load avg
 
Hi,

we use ISPmanager in VPS (OpenVZ) with approx. 80 web domains. AWStats are generated automatically for each domain.

Problem is generation of AWStats output every day or hour (according to settings in web management of ISPmanager). It runs huge number of awstats.pl process in parallel and load average of server goes up to 30 so server is unable serve content to visitors of web pages or e-mail accounts reliably.

Is it possible to configure ISPmanager or server to spread stats generation to whole hour or whole day so the load average would be reasonable lower?

Maybe it is possible to serialise running of awstats.pl?

Thanks in advance for any advice or solution.

Pavel

slava 02-29-2012 07:48 PM

Helo,
you can configure in crontab /usr/local/ispmgr/sbin/rotate job.
Change this in Cron to
Code:

/usr/local/ispmgr/sbin/rotate -c 2
and this will be run only 2 awstats proccesses in one time

bakon 12-12-2012 02:47 AM

Could it be something similar done at "pbackup" so load could be reduced?

Thank you.

slava 12-12-2012 10:10 PM

You can reduce pbackup system load in ispmgr.conf configutation file

BackupPrior - priority for pbackup and all associated processes. You may use values 0 to 19. The larger the number, the less priority a process has. The default value is 0.
BackupIOClass - pbackup I/O priority classes. You may use values 1 to 3, where 1 is a real-time priority level (realtime), 2 is an average level (best effort is set by default), 3 - a minimum level (idle). Used only for Linux-based operating systems.
BackupIOClassData - pbackup I/O priority classes. You may use values 0 to 7. The smaller the figure, the higher the priority. The priority is set only if the priority class is set to 1 or 2. The default value is 7. Used only for Linux-based operating systems.


All times are GMT +2. The time now is 08:53 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.