Optimizing the Task Manager Performance

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.

Reducing Disk Space Consumption

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:

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.

Increasing Task Manager Performance

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.

Increasing Logs Detalization

To make the task manager produce more information that may help you in troubleshooting issues, adjust the logging settings in the following ways: