Customer and Business Manager automates certain hosting providers' tasks such as creating Plesk accounts and subscriptions, registering domain names, issuing invoices, and so on. To do this, Business Manager uses its own task manager. This task manager does the following:
If you want to utilize your server resources better, consider optimizing task manager performance in your environment by changing its settings defined in the /opt/plesk-billing/task-manager/config/config.ini
configuration file. The paragraphs of this section describe the ways to optimize certain aspects of the task manager.
If you want the task manager to consume less disk space, you can reduce the size of its own database. To do this, adjust the following settings that define how much information the task manager stores in the database:
completedTasksClearInterval
, failedTasksClearInterval
, and canceledTasksClearInterval
correspondingly.By default, these intervals are equal to 1 year. If you want to change them, specify the values in the ISO 8601 standard, for example, P1Y for the 1 year interval.
maxTaskLogs
. Its default value is 5. To make the logs consume less disk space, specify a smaller value of this parameter.Note: When you set the task removal intervals described above, remember that setting too small values may make troubleshooting difficult since you may not have enough information about recent task executions.
When you run all scheduled tasks at once, task manager starts processing a certain number of tasks simultaneously. After completing (or failing to complete) the task, the task manager starts another task from the queue and so on. To make processing of multiple tasks faster, increase the maximum number of tasks processed simultaneously. The parameter that sets this number is runAllMaxInstances
.
However, when you set a greater value for this parameter, remember that too big values increase the system load and therefore may reduce the Plesk performance or even block customer access to the Customer Panel.
To make the task manager produce more information that may help you in troubleshooting issues, adjust the logging settings in the following ways:
maxTaskLogs
parameter. When you set a greater value, remember that this will increase the disk space consumption.Important: Including debug information into the task manager logs will reduce its performance; Therefore, we recommend that you include this information only when you troubleshoot certain issues.