Tuesday 15 October 2013

How to control CPU load in a cPanel server while running pkgacct.

It is obvious that server load in a cpanel server will go high if we use  pkgacct to get the .tar.gz of an account.
Now, the following scripts comes  handy.
/usr/local/cpanel/bin/cpuwatch 5 /scripts/pkgacct cPanelusername

In the above, whenever the load goes high over 5, the process “/scripts/pkgacct cPanelusername” pauses automatically and resumes when the load reduce under 5.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.