{"action":"created","issue":{"url":"https://api.github.com/repos/wandoulabs/codis/issues/604","labels_url":"https://api.github.com/repos/wandoulabs/codis/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/wandoulabs/codis/issues/604/comments","events_url":"https://api.github.com/repos/wandoulabs/codis/issues/604/events","html_url":"https://github.com/wandoulabs/codis/issues/604","id":124154611,"number":604,"title":"Server Groups中的Redis有几种Type类型.","user":{"login":"467754239","id":11746057,"avatar_url":"https://avatars.githubusercontent.com/u/11746057?v=3","gravatar_id":"","url":"https://api.github.com/users/467754239","html_url":"https://github.com/467754239","followers_url":"https://api.github.com/users/467754239/followers","following_url":"https://api.github.com/users/467754239/following{/other_user}","gists_url":"https://api.github.com/users/467754239/gists{/gist_id}","starred_url":"https://api.github.com/users/467754239/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/467754239/subscriptions","organizations_url":"https://api.github.com/users/467754239/orgs","repos_url":"https://api.github.com/users/467754239/repos","events_url":"https://api.github.com/users/467754239/events{/privacy}","received_events_url":"https://api.github.com/users/467754239/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T02:41:52Z","updated_at":"2015-12-29T07:28:50Z","closed_at":null,"body":"因为我这边Redis因为网络问题 导致了两次主从切换，所以我想对Redis做些监控。\r\n所以我想知道一个codis-group中的redis的type类型有几种\r\n比如常见的有 master和slave 会不会有其它类型 比如offline 或者为空 等这些情况？"},"comment":{"url":"https://api.github.com/repos/wandoulabs/codis/issues/comments/167739123","html_url":"https://github.com/wandoulabs/codis/issues/604#issuecomment-167739123","issue_url":"https://api.github.com/repos/wandoulabs/codis/issues/604","id":167739123,"user":{"login":"467754239","id":11746057,"avatar_url":"https://avatars.githubusercontent.com/u/11746057?v=3","gravatar_id":"","url":"https://api.github.com/users/467754239","html_url":"https://github.com/467754239","followers_url":"https://api.github.com/users/467754239/followers","following_url":"https://api.github.com/users/467754239/following{/other_user}","gists_url":"https://api.github.com/users/467754239/gists{/gist_id}","starred_url":"https://api.github.com/users/467754239/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/467754239/subscriptions","organizations_url":"https://api.github.com/users/467754239/orgs","repos_url":"https://api.github.com/users/467754239/repos","events_url":"https://api.github.com/users/467754239/events{/privacy}","received_events_url":"https://api.github.com/users/467754239/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T07:28:50Z","updated_at":"2015-12-29T07:28:50Z","body":"由于线上的redis都是一主一从，最近两次出现都都因为网络问题，但是主从切换了，而非是redis挂啦。\r\n所以想通过redis的type做个判断 如果一个group中的数量小于2个就报警 或者type类型不是master或slave也报警 等等情况吧"}}