Requirements below are for manual installation process, Enteprise HostBill editions comes with easy-install script for CentOS 6/7 that install all required components for you. |
To improve front-end performance HostBill executes long-running tasks in background queue. Those include, but not limit to:
When installing its required to add crontab entry to run queue.php file every minute.
If you check Extras → System Logs → Task queue log in your HostBill, and find that there is a lot of tasks in Pending state, it means that queue is not performing well, which is caused by too-few queue workers available. To fix:
If option above is not possible to do, duplicate cron entry for queue.php multiple times (ie 5x):
* * * * * php -q /path/to/hb/queue.php * * * * * php -q /path/to/hb/queue.php * * * * * php -q /path/to/hb/queue.php * * * * * php -q /path/to/hb/queue.php * * * * * php -q /path/to/hb/queue.php |
Run queue.php with -h argument to get list of queue options:
php -q /path/to/hb/queue.php -h |
To queue.php entry add argument with increased number of workers on queue you wish to speed up, like:
* * * * * php -q /path/to/hb/queue.php --hb_mail_queue=6 |