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:
- Schedules and runs tasks.
- Stores task details and execution statuses.
- Suggests how to resolve possible task execution problems.
If you want to utilize your server resources better, consider optimizing
task manager performance in your environment by changing its settings
defined in the %plesk_dir%billingtask-managerconfigconfig.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:
-
How long task manager stores information about processed tasks. The
parameters that set these intervals for completed, failed and
canceled tasks arecompletedTasksClearInterval
,
failedTasksClearInterval
, andcanceledTasksClearInterval
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. -
How much information about each task execution is stored. For
troubleshooting purposes, the task manager writes information about
task executions to log files, one file per each execution. The
parameter that sets maximum number of stored log files for each task
is themaxTaskLogs
. 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.
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 <…