Thread Tuning

Transportation and Global Trade Management workflow is based on a set of business topics and thread groups. A Topic is the Transportation and Global Trade Management terminology for a particular workflow process. For example, AutoMatchInvoice is a topic. Each Topic is associated with a thread group by a glog.property.

A Thread Group is a set of threads dedicated to processing a set of topics. Each thread group is given a number of threads that can be used to simultaneously process topics. When all threads in a group are busy processing a topic, all additional topics are placed in a queue until a thread becomes available. Transportation and Global Trade Management computes statistics for the amount of time a topic spends waiting to be processed and the amount of time spent processing the topic. These statistics can be reviewed with the Event Diagnostics page available on the DBA Technical Support menu.

A long average wait time and/or a backlog of queued events, accompanied by a short average time to process the topic, may indicate a need to increase the number of threads in a thread group. These thread settings may be maintained in the Property Set Manager in either the “APP_WORKFLOW_THREADING” or “CUSTOM” Property Set. Thread settings in “APP_WORKFLOW_THREADING” take precedence. Each thread group has a corresponding property to control the number of threads

  • glog.workflow.queueThreads.<queuename>

<queuename>” should be replaced by the name of the queue (i.e. "planningBuild", "transport – Services") and specified in Property Set’s "Key" field. The number of threads should be specified in the Property Set "Value" field. Data Queue threads such as INTEGRATION IN are managed differently. See Integration Data Queues for more information.

In addition to configuring the number of threads, particular parts of the planning process support multi-threading. The behavior of multi-threading is configurable based on a Batch Size. By default, Cloud is configured with the following Batch Sizes.

  • CommitShipmentGraphs - 25
  • CommitShipmentGraphsForOrderMovements - 25
  • BuildShipmentGraphCollections - 25
  • BuildShipmentGraphs - 25
  • BuildShipments - 25
  • BuildShipmentGraphsForOrderMovements - 25
  • FleetAssignment - 25

For details on this topic, please refer to the “glog.workflow Properties” section of Online Help.