> > Use your LB module . Just put it in your project's META-INT/dubbo/* path 
> > AND you can add any logic u want
> > PS. add this config file to .gitignore file
> > Does this solve your problem?
> 
> Do you mean this: 
> http://dubbo.apache.org/en-us/docs/dev/impls/load-balance.html ?
> When I study the inteface LoadBalance, the only method is:
> select(List<Invoker> invokers, URL url, Invocation invocation)
> So I need to select a inoker from the paramerter invokers, right?
> But I can't find any property related to provider's IP in this parameter.
> Could you shed some light on it? Thanks.

Yes ,i think in your case , you can simply select a invoker. 

`foreach invokers as invoker : check invoker.getUrl  if match your IP  choose 
it else ignore `



 

[ Full content available at: 
https://github.com/apache/incubator-dubbo/issues/3465 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to