{"action":"opened","issue":{"url":"https://api.github.com/repos/tangxuehua/equeue/issues/17","labels_url":"https://api.github.com/repos/tangxuehua/equeue/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tangxuehua/equeue/issues/17/comments","events_url":"https://api.github.com/repos/tangxuehua/equeue/issues/17/events","html_url":"https://github.com/tangxuehua/equeue/issues/17","id":126817398,"number":17,"title":"消费者负载均衡功能调整","user":{"login":"tangxuehua","id":1940111,"avatar_url":"https://avatars.githubusercontent.com/u/1940111?v=3","gravatar_id":"","url":"https://api.github.com/users/tangxuehua","html_url":"https://github.com/tangxuehua","followers_url":"https://api.github.com/users/tangxuehua/followers","following_url":"https://api.github.com/users/tangxuehua/following{/other_user}","gists_url":"https://api.github.com/users/tangxuehua/gists{/gist_id}","starred_url":"https://api.github.com/users/tangxuehua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangxuehua/subscriptions","organizations_url":"https://api.github.com/users/tangxuehua/orgs","repos_url":"https://api.github.com/users/tangxuehua/repos","events_url":"https://api.github.com/users/tangxuehua/events{/privacy}","received_events_url":"https://api.github.com/users/tangxuehua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-15T06:47:48Z","updated_at":"2016-01-15T06:47:48Z","closed_at":null,"body":"目前，当消费者与Broker一断开，就会立即将其从消费者列表中移除，从而导致新一轮的负载均衡时，同一个队列会被分配到另一个消费者；但有时消费者与Broker之间只是闪断，很快又会自动连上的。所以不应该因为这种闪断而改变queue对应的消费者。\r\n\r\n所以，为了让queue和consumer之间的对应关系可以更稳定不变（除非真的增加或减少consumer服务器），去掉这个逻辑，然后只通过心跳来判断消费者是否已断开。心跳机制因为有时间方面的考虑，并不是一断开就立即认为该消费者已挂掉；而是通过判断当多少时间都没有收到consumer的心跳，才认为该consumer已断开。这个时间我们开发者可以自己配置。"}}