Improving the weighted round robin algorithm to take a ramp up frequency so
that it'll gradually increase the load once a suspended endpoint becomes active
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Key: SYNAPSE-773
URL: https://issues.apache.org/jira/browse/SYNAPSE-773
Project: Synapse
Issue Type: Improvement
Components: Core
Affects Versions: NIGHTLY
Reporter: Chintana Wilamuna
Fix For: NIGHTLY
Currently when WeightedRoundRobin algorithm is used to load balance, once an
endpoint gets active again after suspension, it'll put the original weight back
on. This results in the endpoint going down again in heavy load conditions.
This patch tries to avoid this by defining a ramp up frequency for all the
endpoints. So that once a suspended endpoint becomes active again it'll slowly
increase the load to that endpoint upto the maximum weight defined for the
given endpoint by loadbalance.weight property.
Configuring,
For a given load balance endpoint you have to define,
<property name="loadbalance.weight" value="x" />
<property name="rampup.frequency" value="y" />
where x and y are integers. Ramp up frequency is currently calculated per
minute. If you have a weight of 10 and a ramp up frequency 2, it'll take 5
minutes to increase the weight of the endpoint to the maximum defined value of
10.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]