predixy icon indicating copy to clipboard operation
predixy copied to clipboard

ERR no server connection avaliable

Open beebol opened this issue 5 years ago • 3 comments

Client-->SLB-->predixy-->redis-cluster3.0.7 客户端偶尔报,2019-04-15 10:34:17.739 ERR no server connection avaliable 几台predixy日志: 2019-04-15 10:34:17.106880 N Handler.cpp:371 h 7 accept c 100.117.114.130:3000 108 assign to h 6 2019-04-15 10:34:17.106940 N Logger.cpp:152 MissLog count 1 2019-04-15 10:34:17.254067 N Handler.cpp:371 h 7 accept c 100.117.112.2:12937 108 assign to h 6 2019-04-15 10:34:17.254083 N Handler.cpp:212 h 6 remove c 100.117.112.2:12937 108 with status 4 EventError 2019-04-15 10:34:17.301666 N Handler.cpp:371 h 7 accept c 127.0.0.1:29643 108 assign to h 6 2019-04-15 10:34:17.301972 N Handler.cpp:212 h 6 remove c 127.0.0.1:29643 108 with status 2 End 2019-04-15 10:34:17.387392 I Handler.cpp:857 RESP h 3 c 10.xx.xx.133:42401 38 req 298798505 ping s None -1 res 298798504 Status t 2 2019-04-15 10:34:17.737388 N Handler.cpp:371 h 6 accept c 100.117.114.0:52871 120 assign to h 6 2019-04-15 10:34:17.737416 N Handler.cpp:212 h 6 remove c 100.117.114.0:52871 120 with status 4 EventError 2019-04-15 10:34:17.836371 N Handler.cpp:371 h 7 accept c 100.117.113.129:15132 120 assign to h 6 2019-04-15 10:34:17.836430 N Logger.cpp:152 MissLog count 1


2019-04-15 10:34:17.557120 I Handler.cpp:857 RESP h 0 c 10.xx.xx.134:35886 56 req 331372900 mget user_633c0a99be135a591b19686a721108d4 s 10.xx.xx.225:6389 27 res 331372912 Array t 289 2019-04-15 10:34:17.676919 N Handler.cpp:371 h 5 accept c 100.117.114.130:42835 168 assign to h 0 2019-04-15 10:34:17.676926 N Handler.cpp:212 h 0 remove c 100.117.114.130:42835 168 with status 4 EventError 2019-04-15 10:34:17.886227 I Handler.cpp:857 RESP h 2 c 10.xx.xx.132:24947 125 req 310394057 mget user_bbad2bae3e264087bec5bcdab3a971cb s 10.xx.xx.227:6390 51 res 310394049 Array t 107

2019-04-15 10:34:17.101799 N Handler.cpp:371 h 7 accept c 100.117.113.131:34284 36 assign to h 1 2019-04-15 10:34:17.101814 N Handler.cpp:212 h 1 remove c 100.117.113.131:34284 36 with status 4 EventError 2019-04-15 10:34:17.237767 N Handler.cpp:371 h 7 accept c 100.117.112.131:10965 36 assign to h 1 2019-04-15 10:34:17.237825 N Logger.cpp:152 MissLog count 1 2019-04-15 10:34:17.325037 N Handler.cpp:371 h 7 accept c 100.117.113.2:62665 36 assign to h 1 2019-04-15 10:34:17.325088 N Logger.cpp:152 MissLog count 1 2019-04-15 10:34:17.441865 N Handler.cpp:371 h 7 accept c 100.117.114.129:54014 36 assign to h 1 2019-04-15 10:34:17.441885 N Handler.cpp:212 h 1 remove c 100.117.114.129:54014 36 with status 4 EventError 2019-04-15 10:34:17.842406 N ConnectConnectionPool.cpp:190 h 6 check server reopen connection 10.xx.xx.227:6390 36 2019-04-15 10:34:17.842745 N Handler.cpp:1371 h 6 s 10.xx.xx.227:6390 36 mark server alive

beebol avatar Apr 15 '19 03:04 beebol

这也遇到过这个报错,最后查明原因是redis实例的地址发生变化了

RefreshInterval: predixy会周期性的请求redis sentinel以获取最新的集群信息,该参数以秒为单位指定刷新周期,不指定的话为1秒 这个配置貌似无效,并没有定期去请求获取最新的集群信息 @fortrue

jeremyxu2010 avatar Jun 13 '19 07:06 jeremyxu2010

这也遇到过这个报错,最后查明原因是redis实例的地址发生变化了

RefreshInterval: predixy会周期性的请求redis sentinel以获取最新的集群信息,该参数以秒为单位指定刷新周期,不指定的话为1秒 这个配置貌似无效,并没有定期去请求获取最新的集群信息 @fortrue

打开日志看看就知道有没有用了,你的用法不对

fortrue avatar Jun 13 '19 08:06 fortrue

我也遇到这个问题了,一摸一样,但是redis实例的地址没发生改变啊。

Foliertovel avatar Nov 29 '22 01:11 Foliertovel