
Originally Posted by
mohit
Is there any way to run "/scripts/pkgacct" with a load threshold?
It is possible to run pkgacct with a lower CPU process priority using "nice"; in the following example, the least CPU priority is assigned for an account specified by its username:
Code:
# nice -n19 /scripts/pkgacct username
The valid range for CPU priority is from negative twenty ("-20") for the most/highest CPU priority to positive nineteen ("19") for the least/lowest CPU priority.
Please also reference the documentation (manual) "man" page for the nice utility to obtain additional clarification and command usage: An alternative to excluding the account and running it manually or via a separate crontab would be to use incremental backups (that do not use compression and would significantly reduce CPU usage), as configured via the WHM Configure Backup page.
Other than incremental backups, there is a new feature in cPanel/WHM v11.25 to disable compression for backups, providing that sufficient disk space is available; this new option is separate from the incremental backup option; this can be enabled/disabled via the same Configure Backup page in your root WHM control panel.
For specific build tree availability of cPanel/WHM v11.25 please refer to the following link:
http://httpupdate.cpanel.net/#builds