CodisLabs / codis

Proxy based Redis cluster solution supporting pipeline and scaling dynamically
MIT License
13.16k stars 2.69k forks source link

jodis连接codis集群有问题啊 #1709

Open Phoebus888 opened 4 years ago

Phoebus888 commented 4 years ago

2020-04-28 19:51:47,541 [myid:4] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /10.10.7.177:60095 which had sessionid 0x47133adfa6a0071 2020-04-28 19:52:12,107 [myid:4] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /10.10.7.177:60160 2020-04-28 19:52:12,107 [myid:4] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x47133adfa6a0071 at /10.10.7.177:60160 2020-04-28 19:52:12,108 [myid:4] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@645] - Established session 0x47133adfa6a0071 with negotiated timeout 30000 for client /10.10.7.177:60160 2020-04-28 19:52:44,000 [myid:4] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x47133adfa6a0071, timeout of 30000ms exceeded 2020-04-28 19:52:44,001 [myid:4] - INFO [ProcessThread(sid:4 cport:-1)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x47133adfa6a0071 2020-04-28 19:52:44,002 [myid:4] - INFO [CommitProcessor:4:NIOServerCnxn@1008] - Closed socket connection for client /10.10.7.177:60160 which had sessionid 0x47133adfa6a0071 2020-04-28 20:26:07,413 [myid:4] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@357] - caught end of stream exception EndOfStreamException: Unable to read additional data from client sessionid 0x0, likely client has closed socket at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:230) at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203) at java.lang.Thread.run(Thread.java:748) 2020-04-28 20:26:07,413 [myid:4] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /10.10.7.34:33771 (no session established for client)

jodis连接一开始没有问题,但是过一会时间就会报这个错误,导致codis集群直接不可用,大家proxy高可用和负载均衡是怎么做的啊

snailshen2014 commented 4 years ago

这个应该是zookeeper问题啊

Phoebus888 commented 4 years ago

这个应该是zookeeper问题啊

我配置的参数都是按照我正常生产环境来的啊,版本号是zookeeper3.4.8,对了大佬,你们线上proxy是怎么使用高可用的啊

snailshen2014 commented 4 years ago

proxy我们没有做高可用,只是部署了n个,proxy都可以横向扩展的,本身也不存在单点啊?

weilinqwe commented 4 years ago

jodis一直用到现在,没出现大的问题

liangyuanpeng commented 4 years ago

@Phoebus888 问题解决了吗?可以分享一下