{"action":"created","issue":{"url":"https://api.github.com/repos/wandoulabs/codis/issues/226","labels_url":"https://api.github.com/repos/wandoulabs/codis/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/wandoulabs/codis/issues/226/comments","events_url":"https://api.github.com/repos/wandoulabs/codis/issues/226/events","html_url":"https://github.com/wandoulabs/codis/issues/226","id":70000252,"number":226,"title":"codis连接不释放","user":{"login":"zh3linux","id":3424001,"avatar_url":"https://avatars.githubusercontent.com/u/3424001?v=3","gravatar_id":"","url":"https://api.github.com/users/zh3linux","html_url":"https://github.com/zh3linux","followers_url":"https://api.github.com/users/zh3linux/followers","following_url":"https://api.github.com/users/zh3linux/following{/other_user}","gists_url":"https://api.github.com/users/zh3linux/gists{/gist_id}","starred_url":"https://api.github.com/users/zh3linux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zh3linux/subscriptions","organizations_url":"https://api.github.com/users/zh3linux/orgs","repos_url":"https://api.github.com/users/zh3linux/repos","events_url":"https://api.github.com/users/zh3linux/events{/privacy}","received_events_url":"https://api.github.com/users/zh3linux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-22T02:12:42Z","updated_at":"2015-06-03T01:04:04Z","closed_at":null,"body":"生产环境下有1,2,3三台codis\r\n昨天发现其中一台卡顿严重\r\n执行 ss |grep 6499 -c\r\n发现\r\n```\r\n172.16.9.3 | success | rc=0 >>\r\n1169\r\n\r\n172.16.9.2 | success | rc=0 >>\r\n159\r\n\r\n172.16.9.1 | success | rc=0 >>\r\n13984\r\n```\r\n有大量如下的连接\r\n```\r\na@172.16.9.1:~# ss |grep 6499\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.4:43549\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.5:38802\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.5:2853\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.6:8117\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.5:31464\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.6:27782\r\nESTAB      0      0         ::ffff:172.16.9.1:6499       ::ffff:172.16.9.5:47044\r\n......\r\n```\r\n而在客户端连接codis的三台机器4,5,6上\r\n```\r\na@ansible:~# ansible client -m shell -a \"ss |grep 6499 -c\"\r\n172.16.9.4 | success | rc=0 >>\r\n138\r\n\r\n172.16.9.5 | success | rc=0 >>\r\n160\r\n\r\n172.16.9.6 | success | rc=0 >>\r\n1119\r\n```\r\n\r\n在将流量切至机器2和3后,\r\n经过一天时间,发现机器1上codis连接数依旧是一万多个,\r\n连接没有释放,卡顿严重\r\n"},"comment":{"url":"https://api.github.com/repos/wandoulabs/codis/issues/comments/108146322","html_url":"https://github.com/wandoulabs/codis/issues/226#issuecomment-108146322","issue_url":"https://api.github.com/repos/wandoulabs/codis/issues/226","id":108146322,"user":{"login":"toontong","id":416141,"avatar_url":"https://avatars.githubusercontent.com/u/416141?v=3","gravatar_id":"","url":"https://api.github.com/users/toontong","html_url":"https://github.com/toontong","followers_url":"https://api.github.com/users/toontong/followers","following_url":"https://api.github.com/users/toontong/following{/other_user}","gists_url":"https://api.github.com/users/toontong/gists{/gist_id}","starred_url":"https://api.github.com/users/toontong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toontong/subscriptions","organizations_url":"https://api.github.com/users/toontong/orgs","repos_url":"https://api.github.com/users/toontong/repos","events_url":"https://api.github.com/users/toontong/events{/privacy}","received_events_url":"https://api.github.com/users/toontong/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T01:04:04Z","updated_at":"2015-06-03T01:04:04Z","body":"题主说，我们改到1.3.3后，连接可以释放，并且性能有大大提升。"}}