hi
i agree, let user extends themselves.

????????iPhone

------------------ ???????? ------------------
??????: LiZhenNet <[email protected]>
????????: 2019??2??23?? 23:23
??????: dev <[email protected]>
????: ??????ConsistentHash 
LoadBalance????????????????????????????????Hash????????????????



Hi, jingfeng

I feel that the more complex features can be extended by the user, Dubbo
only provide the basic functions .

?????? <[email protected]> ??2019??2??22?????? ????8:58??????

> Hi Xiaobo and Jason
>
> Sorry for that I give an inappropriate example ?? IP_HASH. My origin
> proposal was  that maybe the HASH KEY is not only can be method param. Not
> a serious problem.
>
> > ?? 2019??2??22????????6:24??Jason Joo <[email protected]> ??????
> >
> > Hi, Kitito
> >
> > I get your thought.
> > And the "IP" in our opinion is it a kind of addition (ip + parameters)
> or can be used alone (only ip)?
> >
> > Though IP + parameters may leads to unbalanced load between providers
> but i think it maybe still make sense according to the concept of
> ConsistentHash, while it will not if supporting only ip_hash.
> >
> > Hashed by IP maybe not a need so common i think.
> >
> > best regards,
> >
> > Jason
> >
> >> On Feb 22, 2019, at 15:19, ?????? <[email protected]> wrote:
> >>
> >> 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 <[email protected]> ??????
> >>>
> >>> 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, ?????? <[email protected]> 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