{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-dubbo/issues/2419","repository_url":"https://api.github.com/repos/apache/incubator-dubbo","labels_url":"https://api.github.com/repos/apache/incubator-dubbo/issues/2419/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-dubbo/issues/2419/comments","events_url":"https://api.github.com/repos/apache/incubator-dubbo/issues/2419/events","html_url":"https://github.com/apache/incubator-dubbo/issues/2419","id":356178495,"node_id":"MDU6SXNzdWUzNTYxNzg0OTU=","number":2419,"title":"Server side loadbalance problem","user":{"login":"freeseawind","id":19760912,"node_id":"MDQ6VXNlcjE5NzYwOTEy","avatar_url":"https://avatars3.githubusercontent.com/u/19760912?v=4","gravatar_id":"","url":"https://api.github.com/users/freeseawind","html_url":"https://github.com/freeseawind","followers_url":"https://api.github.com/users/freeseawind/followers","following_url":"https://api.github.com/users/freeseawind/following{/other_user}","gists_url":"https://api.github.com/users/freeseawind/gists{/gist_id}","starred_url":"https://api.github.com/users/freeseawind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeseawind/subscriptions","organizations_url":"https://api.github.com/users/freeseawind/orgs","repos_url":"https://api.github.com/users/freeseawind/repos","events_url":"https://api.github.com/users/freeseawind/events{/privacy}","received_events_url":"https://api.github.com/users/freeseawind/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"carryxyh","id":12047600,"node_id":"MDQ6VXNlcjEyMDQ3NjAw","avatar_url":"https://avatars1.githubusercontent.com/u/12047600?v=4","gravatar_id":"","url":"https://api.github.com/users/carryxyh","html_url":"https://github.com/carryxyh","followers_url":"https://api.github.com/users/carryxyh/followers","following_url":"https://api.github.com/users/carryxyh/following{/other_user}","gists_url":"https://api.github.com/users/carryxyh/gists{/gist_id}","starred_url":"https://api.github.com/users/carryxyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carryxyh/subscriptions","organizations_url":"https://api.github.com/users/carryxyh/orgs","repos_url":"https://api.github.com/users/carryxyh/repos","events_url":"https://api.github.com/users/carryxyh/events{/privacy}","received_events_url":"https://api.github.com/users/carryxyh/received_events","type":"User","site_admin":false},"assignees":[{"login":"carryxyh","id":12047600,"node_id":"MDQ6VXNlcjEyMDQ3NjAw","avatar_url":"https://avatars1.githubusercontent.com/u/12047600?v=4","gravatar_id":"","url":"https://api.github.com/users/carryxyh","html_url":"https://github.com/carryxyh","followers_url":"https://api.github.com/users/carryxyh/followers","following_url":"https://api.github.com/users/carryxyh/following{/other_user}","gists_url":"https://api.github.com/users/carryxyh/gists{/gist_id}","starred_url":"https://api.github.com/users/carryxyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carryxyh/subscriptions","organizations_url":"https://api.github.com/users/carryxyh/orgs","repos_url":"https://api.github.com/users/carryxyh/repos","events_url":"https://api.github.com/users/carryxyh/events{/privacy}","received_events_url":"https://api.github.com/users/carryxyh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":19,"created_at":"2018-09-01T06:54:36Z","updated_at":"2018-09-04T13:37:29Z","closed_at":"2018-09-04T12:04:22Z","author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.\r\n- [x] 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.\r\n\r\n### Environment\r\n\r\n* Dubbo version: 2.6.2\r\n* Operating System version: win7\r\n* Java version: 1.8\r\n\r\n### Step to reproduce this issue\r\n\r\n#### Problem one\r\n\r\nI want to test pseudo cluster, I create service like follow code :\r\n\r\n```\r\npublic interface DemoService\r\n{\r\n    String sayHello(String name);\r\n}\r\n```\r\n\r\nimplement service interface  as follows, both loadbalance strategies are random：\r\n\r\n```\r\n@Service(timeout = 5000, loadbalance=\"random\")\r\npublic class DemoServiceImpl implements DemoService\r\n{\r\n    @Override\r\n    public String sayHello(String name)\r\n    {\r\n        return \"Service1 -> Hello \" + name;\r\n    }\r\n}\r\n```\r\n\r\n```\r\n@Service(timeout = 5000, loadbalance=\"random\")\r\npublic class DemoServiceImpl2 implements DemoService\r\n{\r\n    @Override\r\n    public String sayHello(String name)\r\n    {\r\n        return \"Service2 -> Hello \" + name;\r\n    }\r\n}\r\n```\r\nI start one appliction to test it.\r\n\r\n### Expected Result\r\n\r\n* random return \"Service1\" and \"Service2\" . \r\n\r\n### Actual Result\r\n\r\n* alway return \"Service2\"\r\n\r\n#### Problem two\r\n\r\nchange one implement loadbalance stragy as follow:\r\n\r\n```\r\n@Service(timeout = 5000, loadbalance=\"consistenthash\")\r\npublic class DemoServiceImpl implements DemoService\r\n{\r\n    @Override\r\n    public String sayHello(String name)\r\n    {\r\n        return \"Service1 -> Hello \" + name;\r\n    }\r\n}\r\n```\r\n\r\n### Expected Result\r\n\r\n* random return \"Service1\" and \"Service2\" . \r\n\r\n### Actual Result\r\n\r\n* alway return \"Service1\"\r\n\r\n\r\n### Question\r\n\r\nI don't know how dubbo it works. but it is very strange , it always use consistenthash stragy.\r\n\r\nDubbo provide client and server side loadbalance stragy , Who is at work.\r\n\r\nAs I know，dubbo has no central node coordinator,  may be is client side effect. If remove server side loadblance stragy or improve it ?\r\n\r\ncould not provid unique way to use  loadbalance\r\n\r\n* Single loadbalance stragy\r\n* Mixed loadbalance stragy\r\n\r\n@ulinkwo @justinmclean @lonre @ke4qqq @gmcdonald @carryxyh \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-dubbo/issues/comments/418369876","html_url":"https://github.com/apache/incubator-dubbo/issues/2419#issuecomment-418369876","issue_url":"https://api.github.com/repos/apache/incubator-dubbo/issues/2419","id":418369876,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODM2OTg3Ng==","user":{"login":"freeseawind","id":19760912,"node_id":"MDQ6VXNlcjE5NzYwOTEy","avatar_url":"https://avatars3.githubusercontent.com/u/19760912?v=4","gravatar_id":"","url":"https://api.github.com/users/freeseawind","html_url":"https://github.com/freeseawind","followers_url":"https://api.github.com/users/freeseawind/followers","following_url":"https://api.github.com/users/freeseawind/following{/other_user}","gists_url":"https://api.github.com/users/freeseawind/gists{/gist_id}","starred_url":"https://api.github.com/users/freeseawind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeseawind/subscriptions","organizations_url":"https://api.github.com/users/freeseawind/orgs","repos_url":"https://api.github.com/users/freeseawind/repos","events_url":"https://api.github.com/users/freeseawind/events{/privacy}","received_events_url":"https://api.github.com/users/freeseawind/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T13:37:29Z","updated_at":"2018-09-04T13:37:29Z","author_association":"NONE","body":"there is not Configuration Coverage Relationship chapter\r\n\r\n\r\n![4d00da e52x9cv _m e x](https://user-images.githubusercontent.com/19760912/45034639-a54c0c00-b08a-11e8-9973-07ab19611c61.png)\r\n"}}
{"actor":{"display_login":"freeseawind"}}