Versions Compared

Key

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

The Dynamic Load-balance Endpoint is an endpoint that distributes the its messages (load) arriving at it among application members by evaluating the load-balancing policy and any other relevant parameters. These application members will be discovered using the membershipHandler class. Generally this class will use , which generally uses a group communication mechanism to discover the application members. The class attribute of the membershipHandler element should be an implementation of org.apache.synapse.core.LoadBalanceMembershipHandler. You can specify membershipHandler specific properties can be specified using the property elements. The policy attribute of the dynamicLoadbalance element specifies the load balance -balancing policy (algorithm) to be used for selecting the next member to which that will receive the message has to be forwarded to.

Tip
Info
title

Currently only the roundRobin policy is supported.

...

Dynamic Load-balance Endpoint Configuration

...

titleNote

...

Currently the Dynamic Load-balance Endpoint does not support configuring it using a UI. However, you can configure it using its XML source code in the Source View. Click

...

Source View

...

 in the Manage menu under the Service Bus menu of WSO2 ESB Management Console, to configure the the Dynamic Load-balance Endpoint as shown below.

Image Added

Code Block
languagehtml/xml
<dynamicLoadBalance<dynamicLoadbalance [policy="roundRobin"] [failover="true|false"]>
    <membershipHandler class="impl of org.apache.synapse.core.LoadBalanceMembershipHandler">
      <property name="name" value="value"/>
    </membershipHandler>
 
</dynamicLoadBalance>
Excerpt
hiddentrue
Description of the Dynamic Load-balance Endpoint in WSO2 ESB.
dynamicLoadbalance>