Flow Service Tuning

Here is the instruction about the tuning points related to the Flow Service settings. Before beginning to tune it, you should understand the architecture of the Flow Service, and check the execution environment. About the Flow Service's architecture, please refer to "Introduction" > "Flow functions" > "Process configuration of the Flow Service" and "Introduction" > "More topics" > "The Flow Service's architecture".

FlowService, which is the core of the Flow Service, consists of kinds of "listeners" and "Flow Engine". The former is used to receive the external events, and the latter is the Flow's runtime environment. After checking the FlowService's processing status by monitor tool, you can check the tuning points. About the monitor tools, please refer to "Execution monitoring" > "Monitor tools" .

The processing model of the FlowService is shown as below.

processing model

Flow Engine

In the Flow Engine, the acceptor accepts the start requests of the Flow from each listerners, and registers them into the queue at once. The pooled thread (Worker) whose status is empty gets the first entry from the queue and begins to process it. The thread processes the requested Flow (the main Flow including the SubFlow, the Error Processing Flow, the NextFlow) from the beginning to the end. When it completes processing, the status will become empty.

You can modify the Flow Engine settings from the the Management Console's "Settings"-"Services"-"Flow"'s "Flow Engine" page.

Management Console Flow Engine

The main items related to tuning is as below. About the detals about each items, please refer to the Management Console's "Help".

You can tune it according to the below points.

Various Listeners

When the execution settings of the Flow is set to the "URL Execution", the start request of the Flow is accepted by the HTTP Listener or the HTTPS Listener, the start request from AJP13 is accepeted by the AJP13 Listener. When the execution settings is set to "Schedule Execution" or the execution from the flow-ctrl command and the FlowExecuteClient class(Java), the start request of the Flow is accepted by the Flow Designer Listener (Admin-HTTP Listener).

You can go to the Management Console's "Settings"-"Services"-"Flow", and open the page of the corresponding listener to modify the settings of these listeners.

Management Console HTTP Listener

The main items related to the tuning are as below. About the details of each items, please refer to the Management Console's "Help".

Tune it according to the below points.

Others

In the Management Console's "Settings"-"Services"-"Flow", there is an instruction about the others items related to the tuning. About the details of each items, please refer to the Management Console's "Help".

Start

You can check the "Max Memory Size" through the Management Console's "Settings"-"Services"-"Flow"'s "Start" page.

Max Memory Size in the Management Console

Tune it according to the below points.

 

To the top of this page