{"action":"created","issue":{"url":"https://api.github.com/repos/CodisLabs/codis/issues/1061","repository_url":"https://api.github.com/repos/CodisLabs/codis","labels_url":"https://api.github.com/repos/CodisLabs/codis/issues/1061/labels{/name}","comments_url":"https://api.github.com/repos/CodisLabs/codis/issues/1061/comments","events_url":"https://api.github.com/repos/CodisLabs/codis/issues/1061/events","html_url":"https://github.com/CodisLabs/codis/issues/1061","id":192787492,"number":1061,"title":"data center的问题","user":{"login":"yemt","id":20652504,"avatar_url":"https://avatars.githubusercontent.com/u/20652504?v=3","gravatar_id":"","url":"https://api.github.com/users/yemt","html_url":"https://github.com/yemt","followers_url":"https://api.github.com/users/yemt/followers","following_url":"https://api.github.com/users/yemt/following{/other_user}","gists_url":"https://api.github.com/users/yemt/gists{/gist_id}","starred_url":"https://api.github.com/users/yemt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yemt/subscriptions","organizations_url":"https://api.github.com/users/yemt/orgs","repos_url":"https://api.github.com/users/yemt/repos","events_url":"https://api.github.com/users/yemt/events{/privacy}","received_events_url":"https://api.github.com/users/yemt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T08:57:13Z","updated_at":"2016-12-01T09:02:15Z","closed_at":null,"body":"hi，我对codis-fe上的data center的用途不太明白，你们是如何利用它的呢"},"comment":{"url":"https://api.github.com/repos/CodisLabs/codis/issues/comments/264117680","html_url":"https://github.com/CodisLabs/codis/issues/1061#issuecomment-264117680","issue_url":"https://api.github.com/repos/CodisLabs/codis/issues/1061","id":264117680,"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-12-01T09:02:15Z","updated_at":"2016-12-01T09:02:15Z","body":"@yemt 有跨机房 + 读 Slave 写 Master 的需求。\r\n\r\n比方说，AB 两个机房，Master 都在 A 机房，Slave 都在 B 机房，Proxy AB 两个机房混部署。\r\n需求：\r\n+ 所有 Write 请求都要访问 A 机房的 Master\r\n+ 所有 Read 请求都需要访问最近的节点，A 机房的 Proxy 读 Master，B 机房的 Proxy 读 Slave，一致性需求不高。\r\n\r\n这个时候，配置好正确的 DataCenter，同时在 Dashboard 上 Enable ReplicaGroup 那个 checkbox 后（确保 SYNC 之后），你会发现 Dashboard 给不同机房的 Proxy 下发的 Slot 映射表是不同的。\r\n\r\n一般使用场景下是没有这个需求，所以大多数可以忽略。"}}
{"actor":{"display_login":"spinlock"}}