Sage X3 batch controller

Administration Page Application/Contract Syracuse/Collaboration Class batchServers Representation batchServer

A batch controller entity describes a batch configuration for a Sage X3 solution. There are several runtimes synchronized with the runtimes set in the corresponding Sage X3 solution that identify Sage X3 servers. A batch controller is responsible for driving batch requests that have been scheduled on Sage X3 application.

Information available for a batch controller

The batch controller instances are automatically created and synchronized with corresponding X3 solutions.
The following information must be entered for a Sage X3 batch controller:

Information section

Code

A unique code that identifies the batch controller. This field is in read-only mode and is synchronized with corresponding X3 solutions code.

Auto start

If checked, the batch controller would be started at Syracuse web server start up, and would execute batch request all solution's folders when necessary.

Status

The status informs about the batch controller status.

  • Running when the controller is active and would execute queries regarding Time between two searches (sec) setting.
  • Stopped when the controller is not active and would not perform any action.
  • Stopping when the controller is not active, but still waiting for pending queries to be stopped.

Context section

X3 solution

Refers to the corresponding Sage X3 solution. This association is computed and set to read-only mode.

Administrative endpoint

Defines the Endpoint that will be used to get the list of queries to execute (administrative tasks). This is set by default with the endpoint corresponding to the Sage X3 solution's mother folder.

User

Defines the User that will be used to get the list of queries to execute (administrative tasks). This is not set by default and must be set manually before any usage of the batch controller. It is a mandatory setting because Sage X3 connections need a Sage X3 user login.

Role

Defines the Role that will be used to get the list of queries to execute (administrative tasks). This is not set by default and must be set manually before any usage of the batch controller. It is a mandatory setting because Sage X3 connections need badges.

Locale preference

Defines the Locale that will be used to get the list of queries to execute (administrative tasks). This is set by default to en-US. It is a mandatory setting because Sage X3 connections need locale preferences.

Configuration section

Time between two searches (sec)

When no tasks can be started at a given moment, either because the maximum number of simultaneous tasks has been reached, or because no query is waiting execution, the batch server puts itself into wait mode for a number of seconds defined by this parameter. Once this time has passed, the server re-verifies whether it is possible to launch one or more tasks.

Therefore the value of this parameter influences the average time taken into account for a query (all other execution conditions being equal). A time in the order of 30-60 seconds is generally advised (a shorter time can be selected but this has a negative impact on server loading).

This setting can be modified only when the batch controller status is Stopped.

Timeout search time (sec)

A task having exceeded the execution duration quota that has been authorized is stopped by the server, but the effort in verifying the execution duration for queuing tasks is quite heavy. It is therefore possible to define an interval in seconds between two reads of this type. A minimum time between 1 - 5 minutes is usually sufficient, except in specific cases.

This setting can be modified only when the batch controller status is Stopped.

Maximum delay to launch a query (minutes)

This field allows the specification of the admissible delay (in minutes) for the start of queries. This delay is the time measured between the moment upon which the task has been planned and the current time. Generally, the fact that the number of current tasks equals the maximum number of possible tasks is the reason why there may be some delay.

A task which could not be started within the allotted time will be marked as Outside the time limits and is no longer executed.

The delay can also be defined at the level of the task and this value takes priority.

If this field is equal to 0, and if the admissible delay indicated for the task is also equal to null, the task will never be considered outside the time limits.

This setting can be modified only when the batch controller status is Stopped.

Maximum active queries

This field makes it possible to define the maximum number of tasks which can be active simultaneously globally on the runtimes pool. If this number is exceeded, the starting of the other pending tasks is postponed.

Runtimes section

A Sage X3 solution can be accessed by several runtimes, so the corresponding batch controller can be configured to use any runtime defined in Sage X3 solution's runtime.

Tags

List of tags, separated by commas, a batch controller carries. Tags are especially used to define on which runtime the batch controller can connect. For this, the same tag should be defined in the Sage X3 solution's runtime.

Runtimes used by batch

This array displays the Sage X3 solution's runtime that could be used according to the tags defined on the batch controller. If there is no tag or if no tag match to any runtime, all the runtimes will be displayed.

The rules for the runtime assignement are descirbed in the Sage X3 solution.

Remarks

Some changes done on batch controller itself or on corresponding Sage X3 solution are directly applied on the fly and taken into account by the batch controller execution :

On X3 solution

  • If a runtime is banned/unbanned or disabled/enabled: the corresponding Sage X3 connection is set/unset in batch controller rules that are currently applied.
  • If a runtime host/port is modified: the corresponding Sage X3 connection is removed and added again in batch controller rules that are currently applied.

On batch controller

  • If Maximum active queries is modified, the configuration is set in batch controller rules that are currently applied.

Services available

Several services available from the right panel:

Start

This service launches the batch controller execution. It will perform some administrative and recurrent tasks to ask to Sage X3 supervisor to execute batch queries. These calls are performed every Time between two searches seconds.

Stop

This service stops the batch controller execution. It will perform some last administrative tasks in order to ask to Sage X3 supervisor if some queries are still pending until no pending queries remain (except for recurrent queries). During this process, the status will be set to Stopping waiting for pending queries end, and then to Stopped.

Stop all

This service stops the batch controller execution. It will perform some last administrative tasks in order to ask to Sage X3 supervisor to abort every pending queries (including recurrent queries). During this process, the status will be set to Stopping waiting for pending queries end, and then to Stopped.

List of queries

This service allows to see historical of batch queries. It allows to see their statuses, what runtime has been used to execute each query and also different common properties.

Synchronize configuration

This service retrieve old configuration set in legacy batch server or initialize with default values the three following properties: