{"action":"created","issue":{"url":"https://api.github.com/repos/CodisLabs/codis/issues/812","repository_url":"https://api.github.com/repos/CodisLabs/codis","labels_url":"https://api.github.com/repos/CodisLabs/codis/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/CodisLabs/codis/issues/812/comments","events_url":"https://api.github.com/repos/CodisLabs/codis/issues/812/events","html_url":"https://github.com/CodisLabs/codis/issues/812","id":154385586,"number":812,"title":"slave 对读请求的优化","user":{"login":"spinlock","id":722853,"avatar_url":"https://avatars.githubusercontent.com/u/722853?v=3","gravatar_id":"","url":"https://api.github.com/users/spinlock","html_url":"https://github.com/spinlock","followers_url":"https://api.github.com/users/spinlock/followers","following_url":"https://api.github.com/users/spinlock/following{/other_user}","gists_url":"https://api.github.com/users/spinlock/gists{/gist_id}","starred_url":"https://api.github.com/users/spinlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinlock/subscriptions","organizations_url":"https://api.github.com/users/spinlock/orgs","repos_url":"https://api.github.com/users/spinlock/repos","events_url":"https://api.github.com/users/spinlock/events{/privacy}","received_events_url":"https://api.github.com/users/spinlock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CodisLabs/codis/labels/todo","name":"todo","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-05-12T02:48:08Z","updated_at":"2016-09-03T03:18:05Z","closed_at":null,"body":"proxy 会将 read/write 请求都发送给 master，但是某些读多写少的场景下，希望能将部分一致性要求不高的读请求发送给 slave，这样能最大限度的利用机器资源。"},"comment":{"url":"https://api.github.com/repos/CodisLabs/codis/issues/comments/244523461","html_url":"https://github.com/CodisLabs/codis/issues/812#issuecomment-244523461","issue_url":"https://api.github.com/repos/CodisLabs/codis/issues/812","id":244523461,"user":{"login":"spinlock","id":722853,"avatar_url":"https://avatars.githubusercontent.com/u/722853?v=3","gravatar_id":"","url":"https://api.github.com/users/spinlock","html_url":"https://github.com/spinlock","followers_url":"https://api.github.com/users/spinlock/followers","following_url":"https://api.github.com/users/spinlock/following{/other_user}","gists_url":"https://api.github.com/users/spinlock/gists{/gist_id}","starred_url":"https://api.github.com/users/spinlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinlock/subscriptions","organizations_url":"https://api.github.com/users/spinlock/orgs","repos_url":"https://api.github.com/users/spinlock/repos","events_url":"https://api.github.com/users/spinlock/events{/privacy}","received_events_url":"https://api.github.com/users/spinlock/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T03:18:05Z","updated_at":"2016-09-03T03:18:05Z","body":"@zhongjimax 是可选的。首先根据反馈，这个需求还是有点强烈的。但是实现难度实在是比较大。\r\n\r\n1. 这个开关是可选的，在 dashboard 上，默认是完全关闭的。\r\n2. 开关是 per group 的，打开开关以后，需要额外的同步操作，才能让 proxy 接受新的映射关系。\r\n3. 打开开关以后，切换 master 会导致开关关闭，所有 proxy 会读该 group 的主，直到重复1、2操作。\r\n\r\n以上，我会写一个简单的文档介绍这部分工作。"}}
{"actor":{"display_login":"spinlock"}}