codis icon indicating copy to clipboard operation
codis copied to clipboard

jodis连接codis集群有问题啊

Open Phoebus888 opened this issue 4 years ago • 5 comments

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高可用和负载均衡是怎么做的啊

Phoebus888 avatar Apr 28 '20 12:04 Phoebus888

这个应该是zookeeper问题啊

snailshen2014 avatar May 10 '20 02:05 snailshen2014

这个应该是zookeeper问题啊

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

Phoebus888 avatar May 10 '20 09:05 Phoebus888

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

snailshen2014 avatar May 28 '20 07:05 snailshen2014

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

weilinqwe avatar May 28 '20 07:05 weilinqwe

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

liangyuanpeng avatar Aug 13 '20 17:08 liangyuanpeng