Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Business process deployment capability is provided by the following feature in the WSO2 feature repository:

...

The 'Schedules' section in bps.xml can be used to configure instance cleanup. The 'Schedules' section can contain multiple 'Schedule' elements with multiple 'cleanup' elements. In each 'Schedule' element, the attribute 'when' states the time that the instance cleanup task gets executed. Time is configured using cron expressions (http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger). Inside the cleanup element, filter elements can be used with various instance properties, which help select the instance to be deleted.

...

Code Block
languagehtml/xml
<tns:Schedules>
    <tns:Schedule when="0 11 17 * * ?">
           <tns:cleanup>
                <tns:filter><![CDATA[status=completed]]></tns:filter>
           </tns:cleanup>
    </tns:Schedule>
</tns:Schedules>

 

...

8. Take precaution when deploying WSO2 BPS in virtualized environments. Random increases in network latencies and performance degradation have been observed when running BPS on VMs.

 

9. One technique to reduce memory utilization of the BPS engine is process hydration and dehydration. User can configure the hydration/dehydration policy in $CARBON_HOME/repository/conf/bps.xml file or define a custom hydration/dehydration policy.

The following example enables the dehydration policy and sets the maximum deployed process count that can exist in memory at a particular time to 100. The maximum age of a process before it is dehydrated is set to 5 minutes.

Code Block
languagehtml/xml
<tns:ProcessDehydrationmaxCount="100"value="true"><tns:MaxAgevalue="300000"/></tns:ProcessDehydration>
  • MaxAgevalue: Sets the maximum age of a process before it is dehydrated.
  • ProcessDehydrationmaxCount: The maximum deployed process count that can exist in memory at a particular time.
Info
titleNote

These best practices are valid for WSO2 BPS 2.1.0 onwards. Configuration details for these optimizations vary in older BPS versions. Also, these optimizations are supported by Apache ODE, but configuration is different from WSO2 BPS.

Excerpt
hiddentrue

Instructions to add a BPEL process in WSO2 BPS and manage it as a service.