You are here: System Setup > Background Process Queues

Background Process Queues

This section describes how to create new queues for background processes such as import and export processes, how to assign specific background processes to specific queues, and how to determine the number of processes that can be executed simultaneously on one queue.

Default Configuration

In the default configuration, import processes have their own queue called IN. Export and web publisher processes share a queue called OUT. Scheduled processes have their own queue called SCHEDULE. All other background processes share a queue called MISC.

The IN, OUT and SCHEDULE queues are set up to execute one process at a time. The MISC queue is set up to execute two processes simultaneously.

Below is an example of the default configuration. The default configuration is an integrated part of the STEP code and therefore cannot be found in a separate file. However, most entries can be verified by accessing the admin portal. For more information on reviewing system information found in the admin portal, see the Accessing the Admin Portal documentation here and the Configuration documentation here,both of which can be found in the Admin Portal guide. If the user has the necessary privileges to access the admin portal, the list of properties that dictate the behavior of background processes can be found there under the Configuration tab. Listed below are the properties related to configuration of background processes on a STEP system:

BackgroundProcess.ProcessType.Exporter.Queue=OUT

BackgroundProcess.ProcessType.Importer.Queue=IN

BackgroundProcess.ProcessType.Schedule.Queue=SCHEDULE

BackgroundProcess.ProcessType.WebPublisher.Queue=OUT

BackgroundProcess.Queue.IN.Size=1

BackgroundProcess.Queue.MISC.Size=2

BackgroundProcess.Queue.OUT.Size=1

BackgroundProcess.Queue.SCHEDULE.Size=1

Changing the default configuration

It is possible to change the default configuration.

Example: Below you can find a description of how to change the default configuration, so that export and web publisher processes can be run on separate queues. Furthermore, each queue will be set up to run two processes simultaneously.

Finding the Process Type ID

  1. Click the [Background Processes] tab.
  2. Click Export Manager Pipeline.

    A Process Overview window appears.

  1. Unfold Process Type Information: Export Manager Pipeline
  2. In the Value column, copy the value of the Process Type ID 'Exporter.'
  3. Paste the value in a temporary text file.
  4. Click [Background Processes], then click Publish to Website.

    A Process Overview window appears.

  5. Unfold Process Type Information: Publish to Website
  6. In the Value column, copy the value of the Process Type ID 'WebPublisher.'
  7. Add the value to the temporary text file.

Editing the configuration file

  1. Open the configuration file on the application server. The name of the file is config.properties.

    Note: If you run a clustered setup, you will typically have a configuration file that is shared between the application servers. Queue configurations for the entire cluster can be made in this shared properties file. Alternatively, the config.properties file on each individual application server can be changed.

  2. Create two new queues and set the size of these queues, following this pattern:

    BackgroundProcess.Queue.[Name].Size=[Size]

    BackgroundProcess.Queue.EXPO.Size=2

    BackgroundProcess.Queue.WEBP.Size=2

    In this example, we have named the new Export process queue EXPO, and the new Web Publisher queue WEBP. Each queue can run two parallel processes.

  3. In order to make the export and web publisher processes use these new queues, link the new queues to the relevant process types by adding two additional lines (shown in bold) following this pattern:

BackgroundProcess.ProcessType.[Process Type ID].Queue=[Queue]

BackgroundProcess.ProcessType.Exporter.Queue=EXPO

BackgroundProcess.ProcessType.WebPublisher.Queue=WEBP

The [Process Type ID] has been replaced by the values described in Background Process Queues

  1. Close the config.properties file. The changes will now take immediate effect.

Note: If you run a clustered setup, and you have made the amendments in the shared file, the settings regarding the size will be applicable for each application server. Hence, if you have edited the shared configuration file as described in the example above on a cluster with two application servers, you would be able to run four exports and four web publisher processes simultaneously on the cluster, i.e. two exports and two web publisher processes on each application server.

2017, Stibo Systems