This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Dynamic Load-balance Endpoint distributes the 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 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.

membershipHandler specific properties can be specified using the property elements.

The policy attribute of the dynamicLoadbalance element specifies the load balance policy (algorithm) to be used for selecting the next member to which the message has to be forwarded to.

Tip

Currently only the roundRobin policy is supported.

The failover attribute determines if the next member should be selected once the currently selected member has failed and defaults to true.

Dynamic Load-balance Endpoint Configuration

Note

You can configure the Dynamic Load-balance Endpoint using XML. Click on "Source View" in the "Manage" menu under "Service Bus."

<dynamicLoadBalance [policy="roundRobin"] [failover="true|false"]>
    <membershipHandler class="impl of org.apache.synapse.core.LoadBalanceMembershipHandler">
      <property name="name" value="value"/>
    </membershipHandler>
  </dynamicLoadBalance>
  • No labels