dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] freeseawind opened a new issue #2419: server side loadblance problem
Date Sat, 01 Sep 2018 06:54:37 GMT
freeseawind opened a new issue #2419: server side loadblance problem
URL: https://github.com/apache/incubator-dubbo/issues/2419
 
 
   - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of
this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md)
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.6.2
   * Operating System version: win7
   * Java version: 1.8
   
   ### Step to reproduce this issue
   
   #### Problem one
   
   I want to test pseudo cluster, I create service like follow code :
   
   ```
   public interface DemoService
   {
       String sayHello(String name);
   }
   ```
   
   implement service interface  as follows, both loadbalance strategies are random:
   
   ```
   @Service(timeout = 5000, loadbalance="random")
   public class DemoServiceImpl implements DemoService
   {
       @Override
       public String sayHello(String name)
       {
           return "Service1 -> Hello " + name;
       }
   }
   ```
   
   ```
   @Service(timeout = 5000, loadbalance="random")
   public class DemoServiceImpl2 implements DemoService
   {
       @Override
       public String sayHello(String name)
       {
           return "Service2 -> Hello " + name;
       }
   }
   ```
   
   ### Expected Result
   
   * start one application
   * random return "Service1" and "Service2" . 
   
   ### Actual Result
   
   * alway return "Service2"
   
   #### Problem two
   
   change one implement loadblance stragy as follow:
   
   ```
   @Service(timeout = 5000, loadbalance="consistenthash")
   public class DemoServiceImpl implements DemoService
   {
       @Override
       public String sayHello(String name)
       {
           return "Service1 -> Hello " + name;
       }
   }
   ```
   
   ### Question
   
   I don't know how dubbo it works. but it is very strange , it always use consistenthash
stragy.
   
   Dubbo provide client and server side loadblance stragy , Who is at work.
   
   As I know,dubbo has no central node coordinator,  may be is client side effect. If remove
server side loadblance stragy is better?
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Mime
View raw message