predixy icon indicating copy to clipboard operation
predixy copied to clipboard

predixy连接redis cluster报 Handler.cpp:517 h 1 s 192.168.1.23:5013 39 will be close with status 2 End错误

Open czxin788 opened this issue 7 months ago • 0 comments

predix日志报错:

 tail -100 ../log/predixy.log 
2025-04-25 13:41:28.331750 E Handler.cpp:517 h 1 s 192.168.1.24:5012 24 will be close with status 2 End
2025-04-25 13:41:28.331753 N Handler.cpp:301 h 1 close s 192.168.1.24:5012 24 and c None -1 with status 2 End
2025-04-25 13:41:31.576986 N Handler.cpp:441 h 5 accept c 220.243.179.77:48152 50 assign to h 0
2025-04-25 13:41:31.935248 N ConnectConnectionPool.cpp:49 h 3 reopen server connection 192.168.1.24:5014 24
2025-04-25 13:41:33.938315 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.24:5012 51
2025-04-25 13:41:34.211915 W ConnectConnection.cpp:146 h 0 s 192.168.1.23:5016 66 read error Resource temporarily unavailable
2025-04-25 13:41:34.211953 E Handler.cpp:517 h 0 s 192.168.1.23:5016 66 will be close with status 2 End
2025-04-25 13:41:34.211957 N Handler.cpp:301 h 0 close s 192.168.1.23:5016 66 and c None -1 with status 2 End
2025-04-25 13:41:37.944030 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.25:5014 55
2025-04-25 13:41:48.131720 W ConnectConnection.cpp:146 h 2 s 192.168.1.23:5016 69 read error Operation now in progress
2025-04-25 13:41:48.131747 E Handler.cpp:517 h 2 s 192.168.1.23:5016 69 will be close with status 2 End
2025-04-25 13:41:48.131751 N Handler.cpp:301 h 2 close s 192.168.1.23:5016 69 and c None -1 with status 2 End
2025-04-25 13:41:49.719365 W ConnectConnection.cpp:146 h 0 s 192.168.1.23:5013 61 read error Resource temporarily unavailable
2025-04-25 13:41:49.719390 E Handler.cpp:517 h 0 s 192.168.1.23:5013 61 will be close with status 2 End
2025-04-25 13:41:49.719394 N Handler.cpp:301 h 0 close s 192.168.1.23:5013 61 and c None -1 with status 2 End
2025-04-25 13:41:49.960584 N ConnectConnectionPool.cpp:49 h 1 reopen server connection 192.168.1.24:5012 56
2025-04-25 13:41:50.651810 W ConnectConnection.cpp:146 h 2 s 192.168.1.23:5012 70 read error Operation now in progress
2025-04-25 13:41:50.651851 E Handler.cpp:517 h 2 s 192.168.1.23:5012 70 will be close with status 2 End
2025-04-25 13:41:50.651855 N Handler.cpp:301 h 2 close s 192.168.1.23:5012 70 and c None -1 with status 2 End
2025-04-25 13:41:51.171801 W ConnectConnection.cpp:146 h 1 s 192.168.1.25:5014 62 read error Operation now in progress
2025-04-25 13:41:51.171847 E Handler.cpp:517 h 1 s 192.168.1.25:5014 62 will be close with status 2 End
2025-04-25 13:41:51.171852 N Handler.cpp:301 h 1 close s 192.168.1.25:5014 62 and c None -1 with status 2 End
2025-04-25 13:41:51.963269 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.23:5015 57
2025-04-25 13:41:55.969685 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.25:5013 59
2025-04-25 13:41:56.178029 W ConnectConnection.cpp:146 h 2 s 192.168.1.23:5013 78 read error Operation now in progress
2025-04-25 13:41:56.178061 E Handler.cpp:517 h 2 s 192.168.1.23:5013 78 will be close with status 2 End
2025-04-25 13:41:56.178065 N Handler.cpp:301 h 2 close s 192.168.1.23:5013 78 and c None -1 with status 2 End
2025-04-25 13:41:59.115071 W ConnectConnection.cpp:146 h 0 s 192.168.1.25:5014 79 read error Resource temporarily unavailable
2025-04-25 13:41:59.115105 E Handler.cpp:517 h 0 s 192.168.1.25:5014 79 will be close with status 2 End
2025-04-25 13:41:59.115109 N Handler.cpp:301 h 0 close s 192.168.1.25:5014 79 and c None -1 with status 2 End
2025-04-25 13:42:02.980793 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.23:5014 61
2025-04-25 13:42:03.081251 W ConnectConnection.cpp:146 h 0 s 192.168.1.25:5015 65 read error Resource temporarily unavailable
2025-04-25 13:42:03.081288 E Handler.cpp:517 h 0 s 192.168.1.25:5015 65 will be close with status 2 End
2025-04-25 13:42:03.081292 N Handler.cpp:301 h 0 close s 192.168.1.25:5015 65 and c None -1 with status 2 End
2025-04-25 13:42:04.983772 N ConnectConnectionPool.cpp:49 h 0 reopen server connection 192.168.1.25:5013 62
2025-04-25 13:42:05.079156 W ConnectConnection.cpp:146 h 2 s 192.168.1.24:5014 67 read error Operation now in progress
2025-04-25 13:42:05.079185 E Handler.cpp:517 h 2 s 192.168.1.24:5014 67 will be close with status 2 End
2025-04-25 13:42:05.079189 N Handler.cpp:301 h 2 close s 192.168.1.24:5014 67 and c None -1 with status 2 End
2025-04-25 13:42:05.985155 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.23:5012 64
2025-04-25 13:42:08.051996 W ConnectConnection.cpp:146 h 2 s 192.168.1.25:5013 58 read error Operation now in progress
2025-04-25 13:42:08.052028 E Handler.cpp:517 h 2 s 192.168.1.25:5013 58 will be close with status 2 End
2025-04-25 13:42:08.052032 N Handler.cpp:301 h 2 close s 192.168.1.25:5013 58 and c None -1 with status 2 End
2025-04-25 13:42:08.989583 N ConnectConnectionPool.cpp:49 h 0 reopen server connection 192.168.1.25:5012 58
2025-04-25 13:42:13.513155 W ConnectConnection.cpp:146 h 2 s 192.168.1.24:5012 60 read error Operation now in progress
2025-04-25 13:42:13.513191 E Handler.cpp:517 h 2 s 192.168.1.24:5012 60 will be close with status 2 End
2025-04-25 13:42:13.513196 N Handler.cpp:301 h 2 close s 192.168.1.24:5012 60 and c None -1 with status 2 End
2025-04-25 13:42:15.472487 W ConnectConnection.cpp:146 h 0 s 192.168.1.23:5012 45 read error Operation now in progress
2025-04-25 13:42:15.472523 E Handler.cpp:517 h 0 s 192.168.1.23:5012 45 will be close with status 2 End
2025-04-25 13:42:15.472527 N Handler.cpp:301 h 0 close s 192.168.1.23:5012 45 and c None -1 with status 2 End
2025-04-25 13:42:16.116988 W ConnectConnection.cpp:146 h 2 s 192.168.1.24:5015 41 read error Operation now in progress
2025-04-25 13:42:16.117020 E Handler.cpp:517 h 2 s 192.168.1.24:5015 41 will be close with status 2 End
2025-04-25 13:42:16.117023 N Handler.cpp:301 h 2 close s 192.168.1.24:5015 41 and c None -1 with status 2 End
2025-04-25 13:42:18.002648 N ConnectConnectionPool.cpp:49 h 7 reopen server connection 192.168.1.23:5013 41
2025-04-25 13:42:19.088057 W ConnectConnection.cpp:146 h 1 s 192.168.1.23:5014 31 read error Operation now in progress
2025-04-25 13:42:19.088084 E Handler.cpp:517 h 1 s 192.168.1.23:5014 31 will be close with status 2 End
2025-04-25 13:42:19.088088 N Handler.cpp:301 h 1 close s 192.168.1.23:5014 31 and c None -1 with status 2 End
2025-04-25 13:42:20.224000 W ConnectConnection.cpp:146 h 0 s 192.168.1.24:5016 33 read error Operation now in progress
2025-04-25 13:42:20.224022 E Handler.cpp:517 h 0 s 192.168.1.24:5016 33 will be close with status 2 End
2025-04-25 13:42:20.224026 N Handler.cpp:301 h 0 close s 192.168.1.24:5016 33 and c None -1 with status 2 End
2025-04-25 13:42:21.064312 W ConnectConnection.cpp:146 h 2 s 192.168.1.25:5015 53 read error Operation now in progress
2025-04-25 13:42:21.064355 E Handler.cpp:517 h 2 s 192.168.1.25:5015 53 will be close with status 2 End
2025-04-25 13:42:21.064359 N Handler.cpp:301 h 2 close s 192.168.1.25:5015 53 and c None -1 with status 2 End
2025-04-25 13:42:22.121189 W ConnectConnection.cpp:146 h 1 s 192.168.1.23:5015 44 read error Operation now in progress
2025-04-25 13:42:22.121218 E Handler.cpp:517 h 1 s 192.168.1.23:5015 44 will be close with status 2 End
2025-04-25 13:42:22.121222 N Handler.cpp:301 h 1 close s 192.168.1.23:5015 44 and c None -1 with status 2 End
2025-04-25 13:42:23.010521 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.25:5015 31
2025-04-25 13:42:25.247366 W ConnectConnection.cpp:146 h 2 s 192.168.1.24:5016 22 read error Operation now in progress
2025-04-25 13:42:25.247398 E Handler.cpp:517 h 2 s 192.168.1.24:5016 22 will be close with status 2 End
2025-04-25 13:42:25.247402 N Handler.cpp:301 h 2 close s 192.168.1.24:5016 22 and c None -1 with status 2 End
2025-04-25 13:42:26.168614 W ConnectConnection.cpp:146 h 1 s 192.168.1.23:5016 63 read error Operation now in progress
2025-04-25 13:42:26.168649 E Handler.cpp:517 h 1 s 192.168.1.23:5016 63 will be close with status 2 End
2025-04-25 13:42:26.168653 N Handler.cpp:301 h 1 close s 192.168.1.23:5016 63 and c None -1 with status 2 End
2025-04-25 13:42:28.017951 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.23:5013 22
2025-04-25 13:42:28.062960 W ConnectConnection.cpp:146 h 2 s 192.168.1.25:5014 49 read error Operation now in progress
2025-04-25 13:42:28.062978 E Handler.cpp:517 h 2 s 192.168.1.25:5014 49 will be close with status 2 End
2025-04-25 13:42:28.062982 N Handler.cpp:301 h 2 close s 192.168.1.25:5014 49 and c None -1 with status 2 End
2025-04-25 13:42:30.146843 W ConnectConnection.cpp:146 h 2 s 192.168.1.23:5014 20 read error Operation now in progress
2025-04-25 13:42:30.146872 E Handler.cpp:517 h 2 s 192.168.1.23:5014 20 will be close with status 2 End
2025-04-25 13:42:30.146876 N Handler.cpp:301 h 2 close s 192.168.1.23:5014 20 and c None -1 with status 2 End
2025-04-25 13:42:31.022312 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.25:5014 20
2025-04-25 13:42:31.176517 W ConnectConnection.cpp:146 h 1 s 192.168.1.24:5016 25 read error Operation now in progress
2025-04-25 13:42:31.176553 E Handler.cpp:517 h 1 s 192.168.1.24:5016 25 will be close with status 2 End
2025-04-25 13:42:31.176558 N Handler.cpp:301 h 1 close s 192.168.1.24:5016 25 and c None -1 with status 2 End
2025-04-25 13:42:31.602745 N Handler.cpp:238 h 0 remove c 220.243.179.77:48152 50 with status 4 EventError
2025-04-25 13:42:32.060135 W ConnectConnection.cpp:146 h 2 s 192.168.1.25:5016 48 read error Operation now in progress
2025-04-25 13:42:32.060166 E Handler.cpp:517 h 2 s 192.168.1.25:5016 48 will be close with status 2 End
2025-04-25 13:42:32.060170 N Handler.cpp:301 h 2 close s 192.168.1.25:5016 48 and c None -1 with status 2 End
2025-04-25 13:42:34.026919 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.24:5013 25
2025-04-25 13:42:36.136818 W ConnectConnection.cpp:146 h 1 s 192.168.1.25:5015 72 read error Operation now in progress
2025-04-25 13:42:36.136847 E Handler.cpp:517 h 1 s 192.168.1.25:5015 72 will be close with status 2 End
2025-04-25 13:42:36.136851 N Handler.cpp:301 h 1 close s 192.168.1.25:5015 72 and c None -1 with status 2 End
2025-04-25 13:42:40.035600 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.25:5013 33
2025-04-25 13:42:41.100643 W ConnectConnection.cpp:146 h 1 s 192.168.1.24:5013 76 read error Operation now in progress
2025-04-25 13:42:41.101255 E Handler.cpp:517 h 1 s 192.168.1.24:5013 76 will be close with status 2 End
2025-04-25 13:42:41.101260 N Handler.cpp:301 h 1 close s 192.168.1.24:5013 76 and c None -1 with status 2 End
2025-04-25 13:42:42.072440 W ConnectConnection.cpp:146 h 1 s 192.168.1.23:5013 39 read error Operation now in progress
2025-04-25 13:42:42.072476 E Handler.cpp:517 h 1 s 192.168.1.23:5013 39 will be close with status 2 End
2025-04-25 13:42:42.072480 N Handler.cpp:301 h 1 close s 192.168.1.23:5013 39 and c None -1 with status 2 End
2025-04-25 13:42:47.045636 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.23:5014 39
2025-04-25 13:42:50.049920 N ConnectConnectionPool.cpp:49 h 4 reopen server connection 192.168.1.24:5014 44

配置文件如下:

cat predixy.conf  |grep -v "#" |grep -v ^$
Name PredixyExample
Bind 0.0.0.0:6549
ClientTimeout 300
Log  /data0/predixy/log/predixy.log
LogVerbSample 0
LogDebugSample 0
LogInfoSample 10000
LogNoticeSample 1
LogWarnSample 1
LogErrorSample 1
Include license.conf
Include auth.conf
Include cluster.conf
Include latency.conf
cat cluster.conf  |grep -v "#"

ClusterServerPool {
    Password 123456
    MasterReadPriority 60
    StaticSlaveReadPriority 50
    DynamicSlaveReadPriority 50
    RefreshInterval 1
    ServerTimeout 1
    ServerFailureLimit 10
    ServerRetryTimeout 1
    KeepAlive 120
    Servers {
                + 192.168.1.23:5012
                + 192.168.1.23:5013
                + 192.168.1.23:5014
                + 192.168.1.23:5015
                + 192.168.1.23:5016

                + 192.168.1.24:5012
                + 192.168.1.24:5013
                + 192.168.1.24:5014
                + 192.168.1.24:5015
                + 192.168.1.24:5016

                + 192.168.1.25:5012
                + 192.168.1.25:5013
                + 192.168.1.25:5014
                + 192.168.1.25:5015
                + 192.168.1.25:5016
    }
}

redis cluster集群是正常的:

cluster nodes
e2e3c5d175dfad2d3b602a26c809bf9489f0973e 192.168.1.23:5015@15015 slave a517f2c6dac2f8700cc596ba468fe29510e50471 0 1745550446691 7 connected
c965525eb0f8bb38e631321c72c8b98d57b82f9a 192.168.1.23:5012@15012 myself,master - 0 0 1 connected 0-3276
c95dbbc6576e24cee37643876142664187877f6d 192.168.1.23:5014@15014 slave 09de1649d04e1e18be79ec677f8b44dc35ffcd53 0 1745550446000 6 connected
7fefe27cdf91b13e8d59d628421c31935b64edfc 192.168.1.24:5015@15015 slave 4692cb866d422c33434ed76f84acda666ed8e3fd 0 1745550441000 16 connected
09de1649d04e1e18be79ec677f8b44dc35ffcd53 192.168.1.24:5012@15012 master - 0 1745550445000 6 connected 3277-6553
4692cb866d422c33434ed76f84acda666ed8e3fd 192.168.1.23:5016@15016 master - 0 1745550443000 16 connected 6554-9829
0e6618598dae4397f14b393c66653281cb1eb605 192.168.1.24:5016@15016 slave d642f9cd062e1ac58255bdc11d49feee4825c13e 0 1745550444572 2 connected
8a94bc541925b74213dff35c03e3797affff8e44 192.168.1.24:5014@15014 slave c965525eb0f8bb38e631321c72c8b98d57b82f9a 0 1745550447599 1 connected
553b9e2a89281436b1eaa54e80c23d7039a8f79b 192.168.1.25:5012@15012 slave 4692cb866d422c33434ed76f84acda666ed8e3fd 0 1745550443564 16 connected
db615cc68d8b19d626d931685f273fb30d60b08e 192.168.1.25:5016@15016 slave a517f2c6dac2f8700cc596ba468fe29510e50471 0 1745550444000 7 connected
22cbab441c8b75562e9670db256bdac3ae320418 192.168.1.25:5014@15014 slave c965525eb0f8bb38e631321c72c8b98d57b82f9a 0 1745550442151 1 connected
d642f9cd062e1ac58255bdc11d49feee4825c13e 192.168.1.23:5013@15013 master - 0 1745550442000 2 connected 9830-13106
e1170483586c8c8ca07ae2f2d8f67faafc053307 192.168.1.25:5013@15013 slave d642f9cd062e1ac58255bdc11d49feee4825c13e 0 1745550445682 2 connected
a517f2c6dac2f8700cc596ba468fe29510e50471 192.168.1.24:5013@15013 master - 0 1745550447700 7 connected 13107-16383
98a5d56eed576e2022f3841d74480a2dcf2ef3e6 192.168.1.25:5015@15015 slave 09de1649d04e1e18be79ec677f8b44dc35ffcd53 0 1745550445000 6 connected

使用的predixy版本是:PredixyFreeEdition 7.0.1

czxin788 avatar Apr 25 '25 05:04 czxin788