Re: apply for contributor

2019-02-21 Thread Ian Luo
Feel free to join us, you are very welcomed :) Besides the contribution
guide [1] Zhen Li mentioned, you may interested in looking into this slide
to understand where to start is better.

Cheers,
-Ian.


1.  https://github.com/apache/incubator-dubbo#contributing
2.
https://github.com/dubbo/awesome-dubbo/blob/master/slides/meetup/201901%40guangzhou/How-to-contribute-to-Dubbo.pdf

On Tue, Feb 19, 2019 at 7:24 PM liang luo  wrote:

> hi,
>  It's a good open source project, i would like to be a contributor for
> improving it by myself.
> Hope agree it, 3q.
>
> github account:  luoliang.kua...@gmail.com
>
> Thanks.
>


Re: Bring Authorization to Dubbo OPS

2019-02-21 Thread Ian Luo
looking forward to your pull request, this is really a very good feature.

-Ian.

On Tue, Feb 19, 2019 at 2:06 PM 柯振旭  wrote:

> HI Dubbo Comunity:
>   There is no authorization or authentication in the current version of
> dubbo-ops and it's open to all users,
> so I'm planing to bring authorization to dubbo-ops[1] for the sake of
> security, here is my thought:
>
>
> 1. provide a simple authorization implementation(for example Spring
> Security?) [2]
> 2. use SPI pattern so that users can change to other authorization
> machanisms
>
>
> any advice is appreciated, thanks :)
>
>
> [1] https://github.com/apache/incubator-dubbo-ops/issues/210
> [2] https://github.com/apache/incubator-dubbo-ops/issues/204


Re: [WANTED]: contribute to blogs

2019-02-21 Thread Ian Luo
Agree. People claim the work but later they may busy on other stuff. We
should not let this fact block the work to be done. We should reclaim it
after wait for them for a certain period. 2 weeks looks to me reasonable.

Regards,
-Ian.

On Thu, Feb 21, 2019 at 2:32 PM Huxing Zhang  wrote:

> Hi,
>
> I found that someone left comments to claim one task, but failed to
> finish within some periods, and then other people jump up to claim the
> same task.
> I feel there should it should be preemptive.
> If the task has no progress in certain periods, say 2 week (can be
> discussed), the task can be claimed by others.
>
> How do you think?
>
> [1] https://github.com/apache/incubator-dubbo-website/issues/172
>
>
>
> On Wed, Feb 20, 2019 at 5:14 PM Huxing Zhang  wrote:
> >
> > Hi All,
> >
> > I've summarized the work to date in this issue[1], and thanks everyone
> > who participated.
> > In fact there is still plenty to do, so I am calling for more
> > community effort on this.
> >
> > I have added the status and the author in the issue description. If
> > you have write access you can edit it and add your name to claim the
> > one you want to write.
> > If you do not, please leave a message in the issue and someone will
> > help to add your name on it.
> >
> > Any questions please leave a comment or ask on the mailing list. :)
> >
> >
> > [1] https://github.com/apache/incubator-dubbo-website/issues/172
> >
> > On Wed, Oct 31, 2018 at 11:18 AM Ian Luo  wrote:
> > >
> > > Hi folks,
> > >
> > > Today I post a plan [1] on building blogs on Dubbo website.I hope
> > > eventually we could create one book out of the posted blogs, so pls.
> follow
> > > the style of Manning In Action series when you write the blog.
> > >
> > >  If you are interested, feel free to join us.
> > >
> > > Thanks,
> > > -Ian.
> > >
> > > 1. https://github.com/apache/incubator-dubbo-website/issues/172
> >
> >
> >
> > --
> > Best Regards!
> > Huxing
>
>
>
> --
> Best Regards!
> Huxing
>


Re: How to integrate dubbo-registry-nacos into Fescar project?

2019-02-21 Thread Ian Luo
I see. You may need to point us the code location so that we could discuss
this particular issue better.

Thanks,
-Ian.

On Tue, Feb 19, 2019 at 5:50 PM 季敏  wrote:

> It is only the fescar-sample involved in the PR about the integration of
> fescar, dubbo, nacos.
>
>
> Ian Luo  于2019年2月18日周一 下午6:33写道:
>
> > I am confused, why fescar needs to depend on dubbo-registry-nacos.
> >
> > > because fescar 0.2 has been
> > released and supports nacos as a registration and configuration center.
> >
> > It looks like you should depend on nacos directly.
> >
> > -Ian.
> >
> >
> > On Thu, Feb 14, 2019 at 11:07 PM 季敏  wrote:
> >
> > > When will the 2.7.1 be released? Fescar's main framework does not
> > directly
> > > depend on dubbo-registry-nacos, because the framework does not directly
> > > determine which registry the user uses. But recently I will post a PR
> on
> > > how fescar, nacos and dubbo are integrated, because fescar 0.2 has been
> > > released and supports nacos as a registration and configuration center.
> > >
> > > Huxing Zhang  于2019年2月14日周四 下午3:30写道:
> > >
> > > > Hi,
> > > >
> > > > On Wed, Feb 13, 2019 at 6:59 PM Xin Wang 
> > > wrote:
> > > > >
> > > > > Hi all,
> > > > > Now the Fescar project[0] will integrate
> dubbo-registry-nacos[1],
> > > but
> > > > > there are two issues:
> > > > > *  dubbo-registry-nacos[1] has no release version
> > > > > *  I know dubbo-registry-nacos is being merged into Dubbo main repo
> > > [2],
> > > > >  Then what kind of Maven dependency do you recommend?
> > > > >
> > > > >  org.apache.dubbo
> > > > >  dubbo
> > > > >or
> > > > >com.alibaba
> > > > >dubbo
> > > >
> > > > What is schedule of Fescar's integration with dubbo-registry-nacos?
> > > > If it is not in a hurry, I suggest to use the org.apache.dubbo, since
> > > > it will be available in the subsequent 2.6.6 and 2.7.1 release.
> > > >
> > > > >
> > > > > [0] https://github.com/alibaba/fescar/
> > > > > [1] https://github.com/dubbo/dubbo-registry-nacos
> > > > > [2]
> > > > >
> > > >
> > >
> >
> https://lists.apache.org/thread.html/a6753eee2f7098fcaaf12b24d5496b9f1d3f21f52ffdbc5a808ddd89@%3Cdev.dubbo.apache.org%3E
> > > >
> > > >
> > > >
> > > > --
> > > > Best Regards!
> > > > Huxing
> > > >
> > >
> >
>


Re: Re: Bring Authorization to Dubbo OPS

2019-02-21 Thread zhi_guang_...@163.com
or may be use shiro as a lighter authorization implementation.



您的朋友:刘志广


 
From: Ian Luo
Date: 2019-02-21 17:29
To: dev
Subject: Re: Bring Authorization to Dubbo OPS
looking forward to your pull request, this is really a very good feature.
 
-Ian.
 
On Tue, Feb 19, 2019 at 2:06 PM 柯振旭  wrote:
 
> HI Dubbo Comunity:
>   There is no authorization or authentication in the current version of
> dubbo-ops and it's open to all users,
> so I'm planing to bring authorization to dubbo-ops[1] for the sake of
> security, here is my thought:
>
>
> 1. provide a simple authorization implementation(for example Spring
> Security?) [2]
> 2. use SPI pattern so that users can change to other authorization
> machanisms
>
>
> any advice is appreciated, thanks :)
>
>
> [1] https://github.com/apache/incubator-dubbo-ops/issues/210
> [2] https://github.com/apache/incubator-dubbo-ops/issues/204


Re: Bring Authorization to Dubbo OPS

2019-02-21 Thread jun liu
> 2. use SPI pattern so that users can change to other authorization machanisms


Great! I also think extensibility is very important because most companies may 
already have their own authorization&authentication system inside, allowing 
them to easily legacy that system can be important.

Jun

> On Feb 19, 2019, at 2:05 PM, 柯振旭  wrote:
> 
> HI Dubbo Comunity:
>  There is no authorization or authentication in the current version of 
> dubbo-ops and it's open to all users,
> so I'm planing to bring authorization to dubbo-ops[1] for the sake of 
> security, here is my thought:
> 
> 
> 1. provide a simple authorization implementation(for example Spring 
> Security?) [2]
> 2. use SPI pattern so that users can change to other authorization machanisms
> 
> 
> any advice is appreciated, thanks :)
> 
> 
> [1] https://github.com/apache/incubator-dubbo-ops/issues/210 
> [2] https://github.com/apache/incubator-dubbo-ops/issues/204



Re: [WANTED]: contribute to blogs

2019-02-21 Thread jun liu
I will continue to try to add some blogs showing how to solve problems in some 
specific scenarios by using features introduced in 2.7.0.

Jun

> On Feb 21, 2019, at 2:32 PM, Huxing Zhang  wrote:
> 
> Hi,
> 
> I found that someone left comments to claim one task, but failed to
> finish within some periods, and then other people jump up to claim the
> same task.
> I feel there should it should be preemptive.
> If the task has no progress in certain periods, say 2 week (can be
> discussed), the task can be claimed by others.
> 
> How do you think?
> 
> [1] https://github.com/apache/incubator-dubbo-website/issues/172
> 
> 
> 
> On Wed, Feb 20, 2019 at 5:14 PM Huxing Zhang  wrote:
>> 
>> Hi All,
>> 
>> I've summarized the work to date in this issue[1], and thanks everyone
>> who participated.
>> In fact there is still plenty to do, so I am calling for more
>> community effort on this.
>> 
>> I have added the status and the author in the issue description. If
>> you have write access you can edit it and add your name to claim the
>> one you want to write.
>> If you do not, please leave a message in the issue and someone will
>> help to add your name on it.
>> 
>> Any questions please leave a comment or ask on the mailing list. :)
>> 
>> 
>> [1] https://github.com/apache/incubator-dubbo-website/issues/172
>> 
>> On Wed, Oct 31, 2018 at 11:18 AM Ian Luo  wrote:
>>> 
>>> Hi folks,
>>> 
>>> Today I post a plan [1] on building blogs on Dubbo website.I hope
>>> eventually we could create one book out of the posted blogs, so pls. follow
>>> the style of Manning In Action series when you write the blog.
>>> 
>>> If you are interested, feel free to join us.
>>> 
>>> Thanks,
>>> -Ian.
>>> 
>>> 1. https://github.com/apache/incubator-dubbo-website/issues/172
>> 
>> 
>> 
>> --
>> Best Regards!
>> Huxing
> 
> 
> 
> --
> Best Regards!
> Huxing



Re: apply for contributor

2019-02-21 Thread jun liu
Welcome.

You do not to be allowed to contribute to Dubbo, anyone who’s interested can 
contribute. Feel free to ask questions on the mailing list or github whenever 
you get some ideas or have a problem.

Jun

> On Feb 19, 2019, at 6:49 PM, liang luo  wrote:
> 
> hi,
> It's a good open source project, i would like to be a contributor for
> improving it by myself.
> Hope agree it, 3q.
> 
> github account:  luoliang.kua...@gmail.com
> 
> Thanks.



Re: [DISCUSS] Dubbo Community Annual Report

2019-02-21 Thread jun liu
It has been a significiant year for Dubbo, I can feel the community grew a lot 
in many dimensions. It would be great if there’s some summarized statistics to 
show us how much the community has grew intuitively.

Jun

> On Feb 21, 2019, at 2:52 PM, Huxing Zhang  wrote:
> 
> Hi All,
> 
> Recently I've seen community annual report has been published, for
> example CNCF has published their annual report of 2018.
> 
> As Dubbo has joined Apache Incubator for one year, and the community
> really did lots of excellent work in 2018, I am thinking that shall
> the Dubbo community have an annual report as well?
> 
> As I submitted the Apache Incubator Report quarterly, I am happy to
> summarize it if the community is willing to see it.
> 
> -- 
> Best Regards!
> Huxing



Re: Proposal for releasing hessian-lite 3.2.5

2019-02-21 Thread jun liu
Hi, Minxuan

Would you please start a formal vote for this release? So that the community 
can help check the staging repo, the tags and the detailed changes.

What do you think?

Jun

> On Feb 19, 2019, at 11:40 AM, Minxuan Zhuang  wrote:
> 
> Hello Dubbo Community,
>   since the last release of hessian-lite, some issues have been fixed, so
> I suggest to release version 3.2.5, the branch is:
> https://github.com/dubbo/hessian-lite/tree/3.2.5
> release note:
> https://github.com/dubbo/hessian-lite/releases/tag/v3.2.5
> 
> what do you think?



Re: [DISCUSS] Next Dubbo meetup

2019-02-21 Thread jun liu
Should we start a new thread collecting topics now?

Jun

> On Feb 19, 2019, at 5:48 PM, Huxing Zhang  wrote:
> 
> Hi All,
> 
> It looks we've reached consensus here.
> 
> The next meetup will be held on March 23rd in Nanjing.
> 
> I will work with PPMC to decide the schedule of this event.
> 
> On Mon, Feb 18, 2019 at 5:58 PM Ian Luo  wrote:
> 
>> +1 to the proposed time and location.
>> 
>> On Mon, Feb 18, 2019 at 5:56 PM victory  wrote:
>> 
>>> +1 for Nanjing
>>> And any weekend is fine for me.
>>> 
>>> Minxuan Zhuang  于2019年2月18日周一 下午5:49写道:
>>> 
 +1 for March 23rd
 +1 for Nanjing
 
 On Thu, Feb 14, 2019 at 2:41 PM jun liu  wrote:
 
>> Can we make it Mar 23rd? As our venue is available on that day.
> 
> +1 for Mar. 23th, any time is ok for me.
> 
> +1 for hosting in Nanjing.
> 
> Jun
> 
>> On Feb 12, 2019, at 12:20 PM, 王蓉(涂南) 
>>> wrote:
>> 
>> Mar 15th is Friday.
>> 
>> Can we make it Mar 23rd? As our venue is available on that day.
>> 
>> 
>> --
>> 发件人:Ian Luo 
>> 发送时间:2019年2月1日(星期五) 17:12
>> 收件人:dev 
>> 抄 送:王蓉(涂南) 
>> 主 题:Re: 回复:[DISCUSS] Next Dubbo meetup
>> 
>> +1 Mar. 15th looks better.
>> 
>> On Thu, Jan 31, 2019 at 10:49 AM Huxing Zhang 
 wrote:
>> 
>>> Hi,
>>> 
>>> Consider the Chinese New Year vacation, how about move one week
>>> later?
>>> 
>>> Location: Nanjing
>>> Call for talks close:  Feb. 22nd (Friday)
>>> Meetup: March 15th (Saturday)
>>> 
>>> On Mon, Jan 28, 2019 at 10:47 PM Ian Luo 
>> wrote:
>>> 
 +1 for Nanjing. I think any weekend in March sounds fine to me.
 
 Thanks,
 -Ian.
 
 On Mon, Jan 28, 2019 at 5:12 PM Huxing Zhang 
> wrote:
 
> Hi,
> 
> On Mon, Jan 28, 2019 at 11:19 AM 王蓉(涂南) <
>> tunan...@alibaba-inc.com
 
 wrote:
> 
>> Hi guys,
>> 
>> Last week meetup in Guangzhou was so much fun.
>> We have total 400+ registrations and more than 200 attendees,
 another
 4k
>> people watched our live streaming!
>> 
>> I think we should start to prepare next meetup in Nanjing ASAP.
>>> As
>>> the
>> Chinese New Year is approaching.
>> 
> 
> We need to first discuss with the community about:
> - where should next meetup be held?
> - when should it be held?
> 
> As discussed in the previous threads, based on the vote result,
>> I
> think
> Nanjing is a good candidate for the next meetup.
> +1 for Nanjing!
> 
> 
> 
>> 
>> What about March 9th?If March 9th is OK, the Call for Talks
>> will
>>> be
> closed
>> on Feb 15th. That will give us plenty of time to prepare.
>> 
> 
> March 9th is a Saturday, which looks good to me.
> Feb 15th looks too early to me, because the Chinese new year
 festival
>>> is
> Feb 4th to Feb 10th. There is only one week after the vacation,
>>> and
 it
>>> is
> possible some of us would have extra days-off after the
>> vacation.
> Is is possible to close the Call for talks one week later? say
>> Feb
>>> 22nd.
> 
> 
>> 
>> Amber
>> BR
>> 
>> 
>> 
>>> --
>> 发件人:Huxing Zhang 
>> 发送时间:2018年12月11日(星期二) 15:15
>> 收件人:dev 
>> 主 题:Re: 回复:[DISCUSS] Next Dubbo meetup
>> 
>> Hi,
>> 
>> I think Guangzhou and Nanjing are the cities we all should go
>> to.
 It
>>> is
>> just about who is the first.
>> 
>> On Tue, Dec 11, 2018 at 2:07 PM Mercy 
 wrote:
>> 
>>> I vote twice, one is Nanjing, another is Guangzhou :D
>>> 
>>> 
>>> Kind regards,
>>> 
>>> Mercy Ma
>>> 
>>> 
>>> 在 2018/12/11 下午1:47, 王蓉(涂南) 写道:
 Folks, so far we have received 40 votes.
 
 Looks like Guangzhou is where we're gonna meet on Jan 19th.
 
 
 广州  12
 南京  10
 北京  4
 深圳  4
 上海  4
 厦门  2
 武汉  1
 西安  1
 重庆  1
 大连  1
 
 
 
>>> --
 发件人:jun liu 
 发送时间:2018年12月7日(星期五) 23:52
 收件人:dev 
 主 题:Re: [DISCUSS] Next Dubbo meetup
 
 I prefer Nanjing for the next Meetup city.
 

Re: [ANN] Welcome new committer: Xiaojie Li

2019-02-21 Thread jun liu
Congratulations.

Jun

> On Feb 14, 2019, at 2:24 PM, Huxing Zhang  wrote:
> 
> Hi Community,
> 
> On behalf of the Dubbo PPMC, I am pleased to announce that Xiaojie Li,
> a.k.a. lixiaojiee[1], has been voted in as a new Dubbo committer.
> 
> Please join me to say congratulations to him!
> 
> Xiaojie, would you please briefly introduce yourself to the community?
> 
> [1] https://github.com/lixiaojiee
> 
> -- 
> Best Regards!
> Huxing



Re: Filter problems in async way

2019-02-21 Thread jun liu
> In addition, I found that we still have a few Filters that are currently
> problematic in asynchronous scenarios, such as:
> 
> * ActiveLimitFilter
> * TraceFilter

I noticed you have raised a PR trying to make these two filters work in an 
async way, I will take a look at it later today and leave my feedbacks there.

Jun

> On Feb 15, 2019, at 2:55 PM, yuhang xiu  wrote:
> 
> Hi, everyone
> 
> Recently, I found that dubbo does not handle the data generated during the
> call process when it is asynchronous.
> 
> For example, in TimeoutFilter, we used invocation#attachments to hold the
> data that needs to be passed (start time in TimeoutFilter). But I don't
> think this way is good, although using Invocation.attachments to pass data
> does not pollute RpcContext.
> 
> Perhaps a better way is to add a temporary attachment to the Invocation
> that only maintains the temporary data generated during the call.
> 
> In addition, I found that we still have a few Filters that are currently
> problematic in asynchronous scenarios, such as:
> 
> * ActiveLimitFilter
> * TraceFilter
> 
> We should determine a plan as soon as possible and then proceed to fix
> these Filters.



Re: ConsistentHash LoadBalance中的解释:缺省只对第一个参数进行Hash运算是什么意思?

2019-02-21 Thread 徐靖峰
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.





Re: ConsistentHash LoadBalance中的解释:缺省只对第一个参数进行Hash运算是什么意思?

2019-02-21 Thread Jason Joo
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, 徐靖峰  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.
> 
> 



self introduction

2019-02-21 Thread Daniela Morais
Hello,

My name is Daniela and I'm a software engineer from Sao Paulo! As a Java 
enthusiast, I've used Apache's Projects for years such as Tomcat, Ant, and 
Maven and I always wanted to contribute. I've been developing microservices 
with Spring Boot so I thought that Dubbo will be a great opportunity to start 
to contribute.

I'm studying CS and I read some issues in Jira about GSoC 2019 
(https://issues.apache.org/jira/browse/DUBBO-33 
) and I want to improve my 
acknowledgment in those technologies (reactive architecture, load balancer, 
service mesh etc.) also.

I’d like to contribute a small commit so I look forward to working on this 
issue: https://github.com/apache/incubator-dubbo/issues/2984 


Thanks
--

Daniela Morais
Computer Science student at University Of Campinas@danielammorais
danielammorais.com 



Re: self introduction

2019-02-21 Thread yuhang xiu
Hi, Daniela

Welcome to dubbo community!

If you have any questions, you can ask here and we will answer them as soon
as possible.

I saw that you claimed an issue and looked forward to your pull request! I
will pay attention to it.

Thx

Daniela Morais  于2019年2月22日周五 下午1:20写道:

> Hello,
>
> My name is Daniela and I'm a software engineer from Sao Paulo! As a Java
> enthusiast, I've used Apache's Projects for years such as Tomcat, Ant, and
> Maven and I always wanted to contribute. I've been developing microservices
> with Spring Boot so I thought that Dubbo will be a great opportunity to
> start to contribute.
>
> I'm studying CS and I read some issues in Jira about GSoC 2019 (
> https://issues.apache.org/jira/browse/DUBBO-33 <
> https://issues.apache.org/jira/browse/DUBBO-33>) and I want to improve my
> acknowledgment in those technologies (reactive architecture, load balancer,
> service mesh etc.) also.
>
> I’d like to contribute a small commit so I look forward to working on this
> issue: https://github.com/apache/incubator-dubbo/issues/2984 <
> https://github.com/apache/incubator-dubbo/issues/2984>
>
> Thanks
> --
>
> Daniela Morais
> Computer Science student at University Of Campinas@danielammorais
> danielammorais.com 
>
>


Re: self introduction

2019-02-21 Thread yuhang xiu
By the way, if you are using github to submit pr for the first time, you
can find some useful information from this link:
http://dubbo.apache.org/en-us/docs/developers/contributor-guide/new-contributor-guide_dev.html

yuhang xiu  于2019年2月22日周五 下午1:57写道:

> Hi, Daniela
>
> Welcome to dubbo community!
>
> If you have any questions, you can ask here and we will answer them as
> soon as possible.
>
> I saw that you claimed an issue and looked forward to your pull request! I
> will pay attention to it.
>
> Thx
>
> Daniela Morais  于2019年2月22日周五 下午1:20写道:
>
>> Hello,
>>
>> My name is Daniela and I'm a software engineer from Sao Paulo! As a Java
>> enthusiast, I've used Apache's Projects for years such as Tomcat, Ant, and
>> Maven and I always wanted to contribute. I've been developing microservices
>> with Spring Boot so I thought that Dubbo will be a great opportunity to
>> start to contribute.
>>
>> I'm studying CS and I read some issues in Jira about GSoC 2019 (
>> https://issues.apache.org/jira/browse/DUBBO-33 <
>> https://issues.apache.org/jira/browse/DUBBO-33>) and I want to improve
>> my acknowledgment in those technologies (reactive architecture, load
>> balancer, service mesh etc.) also.
>>
>> I’d like to contribute a small commit so I look forward to working on
>> this issue: https://github.com/apache/incubator-dubbo/issues/2984 <
>> https://github.com/apache/incubator-dubbo/issues/2984>
>>
>> Thanks
>> --
>>
>> Daniela Morais
>> Computer Science student at University Of Campinas@danielammorais
>> danielammorais.com 
>>
>>


Re: ConsistentHash LoadBalance中的解释:缺省只对第一个参数进行Hash运算是什么意思?

2019-02-21 Thread 徐靖峰
Hi, Jason

I know that the default logic of ConsistentHash LoadBalance is hashed by 
parameters, and dubbo provide the configuration

  to config the hash params

 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  写道:
> 
> 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, 徐靖峰  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.
>> 
>> 
> 





Re: ConsistentHash LoadBalance中的解释:缺省只对第一个参数进行Hash运算是什么意思?

2019-02-21 Thread 田 小波
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,徐靖峰  写道:
> 
> Hi, Jason
> 
> I know that the default logic of ConsistentHash LoadBalance is hashed by 
> parameters, and dubbo provide the configuration
> 
>   to config the hash 
> params
> 
>  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  写道:
>> 
>> 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, 徐靖峰  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.
>>> 
>>> 
>> 
> 
> 
>