{"action":"opened","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/3092","repository_url":"https://api.github.com/repos/antirez/redis","labels_url":"https://api.github.com/repos/antirez/redis/issues/3092/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/3092/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/3092/events","html_url":"https://github.com/antirez/redis/issues/3092","id":133752451,"number":3092,"title":"Cluster does not auto-move slaves","user":{"login":"shaharmor","id":10861920,"avatar_url":"https://avatars.githubusercontent.com/u/10861920?v=3","gravatar_id":"","url":"https://api.github.com/users/shaharmor","html_url":"https://github.com/shaharmor","followers_url":"https://api.github.com/users/shaharmor/followers","following_url":"https://api.github.com/users/shaharmor/following{/other_user}","gists_url":"https://api.github.com/users/shaharmor/gists{/gist_id}","starred_url":"https://api.github.com/users/shaharmor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaharmor/subscriptions","organizations_url":"https://api.github.com/users/shaharmor/orgs","repos_url":"https://api.github.com/users/shaharmor/repos","events_url":"https://api.github.com/users/shaharmor/events{/privacy}","received_events_url":"https://api.github.com/users/shaharmor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-15T16:10:23Z","updated_at":"2016-02-15T16:10:23Z","closed_at":null,"body":"Hi,\r\n\r\nI may have found a minor bug in the automated slave allocation.\r\n\r\nI had a cluster of 6 Master & 6 Slaves (One per master)\r\nI added 2 new nodes at around the same time using this command:\r\n`redis-trib.rb add-node --slave XXX YYY`\r\n\r\nProbably due to race-conditions, one of them became the slave of the other, and the other one became a slave of one of the pre-existing masters.\r\n\r\nSo now i have this cluster:\r\n5 Masters with 5 slaves (One each)\r\n1 Master with 2 slaves\r\n1 Slave of a slave\r\n\r\nWhat i expected to have:\r\n4 Masters with 4 slaves (One each)\r\n2 Masters with 2 slaves\r\n\r\nShould the cluster rebalance automatically to keep an even balance? Or does it happen only when a master reaches 0 slaves?"}}