Workers
The following properties are used to define the worker instances that run within the program instance. The workers are defined explicitly. One instance of the BatchUpdate worker and one instance of the backup worker are started implicitly for each active tenant. The instance of the backup worker is only started if a corresponding input worker is defined.
Property | Description |
|---|---|
Worker[].Type* | Type of worker instance to be executed:
The The value |
Worker[].Tenant | Name of the tenant for which the worker instance is executed Default value: |
Worker[].Name | Name of the worker instance (optional) This name is used for display in logging and the Status Monitor. The |
Worker[].Timer | Individual execution times for the worker instance Syntax: see Miscellaneous Alternatively, the value specified under Within a run, a worker instance determines one single time which batches or documents are pending for processing for the worker instance at this point in time. The worker instance processes these batches or documents one after another in the order found. All objects that have been added since the determination are not included until the next run. |
Worker[].SleepPeriod | Definition of an individual time interval in which this worker instance is to be inactive, even if the timer of this instance falls into this time period (optional) If no value is specified, the value defined globally under Timer.SleepPeriod will be used. Syntax: see |
Worker[].ConfigSource[]* | Reference to the data sources with the specific configurations of the scenarios that the worker instance processes Syntax: URI syntax (see Data Format and Data Sources) Assign scenarios to worker instances based on the use case at hand. Within one program instance of xSuite Interface, you can have multiple worker instances of the same type and for the same tenant working on the same scenario in parallel to achieve an increase in throughput. However, this might be counterproductive if the instances running in parallel block each other due to a scarcity of resources (e.g., when accessing the administrative database at the same time). An alternative is to have multiple program instances, even on different computers, working on the same scenarios in parallel as long as they use the same database and storage resources. A general restriction on parallel executability applies to the input worker. Multiple instances that process the same scenario for the same tenant are not allowed for the input worker. This is meant to avoid possible conflicts when accessing the same input data simultaneously. As a counterpart to parallel execution, a worker instance can also process data from multiple scenarios. Within a timer run, processing then takes place consecutively in the order in which the scenarios are assigned to the worker. |