Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.63 KB

pip-357.md

File metadata and controls

35 lines (22 loc) · 1.63 KB

PIP-357: Correct the conf name in load balance module.

Background knowledge

We use loadBalancerBandwithInResourceWeight and loadBalancerBandwithOutResourceWeight to calculate the broker's load in the load balance module. However, the correct conf name should be loadBalancerBandwidthInResourceWeight and loadBalancerBandwidthOutResourceWeight. This PIP is to correct the conf name in the load balance module.

Motivation

The current conf name is incorrect.

Detailed Design

  • deprecated loadBalancerBandwithInResourceWeight and loadBalancerBandwithOutResourceWeight in the load balance module.
  • add loadBalancerBandwidthInResourceWeight and loadBalancerBandwidthOutResourceWeight in the load balance module.

In case of users upgrading to this version don't notice the change, we will still support the old conf name in following way:

  • If a configuration is not the default configuration, use that configuration.
  • If both the new and the old are configured different from the default value, use the new one.

Backward & Forward Compatibility

Backward compatible, users can upgrade to this version without doing any changes and the old conf name will still work. If user want to use the new conf name, they can change the conf name in the configuration file. Just remember that if both the new and the old are configured different from the default value, the new one will be used.

General Notes

Links