Hi Kitito:

If the user chooses ConsistentHashLoadBalance, indicate the user wants to load 
balance 
through the runtime parameters and expects remote calls with the same parameter 
values 
to fall on the same server. After the introduction of IP, this load balancing 
strategy will be disrupted.

Thanks,
Xiaobo

> 在 2019年2月22日,下午3:19,徐靖峰 <kirito....@foxmail.com> 写道:
> 
> Hi, Jason
> 
> I know that the default logic of ConsistentHash LoadBalance is hashed by 
> parameters, and dubbo provide the configuration
> 
> <dubbo:parameter key="hash.arguments" value="0,1" />  to config the hash 
> params
> 
> <dubbo:parameter key="hash.nodes" value="320" /> to config virtual nodes
> 
> My opinion is Dubbo can extend the hash key, not only the request method 
> params. 
> 
> IP consistent hash is a such common requirement while Dubbo’s existing 
> extension don’t include it, there is no need to let the users extend by 
> themselves,
> 
> A little change for Consistent Hash LoadBalance will support such function.
> 
> Kitito
> 
>> 在 2019年2月22日,上午11:39,Jason Joo <hblz...@163.com> 写道:
>> 
>> hi, moe
>> 
>> I think what you mention is like "ip_hash" in NGINX or some other.
>> 
>> ConsistentHashLB is hashed by parameters because a same logic will just act 
>> the same under the same parameters (which we call it reenterability). Adding 
>> other parameters will break it.
>> 
>> While DUBBO provides the ability extending load balancers which makes it 
>> possible to implement kinds of balancers like ip_hash, app_version_hash or 
>> others.
>> 
>> best regards,
>> 
>> Jason
>> 
>>> On Feb 22, 2019, at 11:00, 徐靖峰 <kirito....@foxmail.com> wrote:
>>> 
>>> Hi all
>>> 
>>> I don’t think that ConsistentHashLoadBalancer should only load balance by 
>>> the method param, maybe more configuration can provide to the user to 
>>> achieve more type of dynamic hash parameters, such as hash by the 
>>> requestIp, more request param.
>>> 
>>> 
>> 
> 
> 
> 

Reply via email to