predixy icon indicating copy to clipboard operation
predixy copied to clipboard

will be close with status 4 EventError

Open haiwen1 opened this issue 2 years ago • 3 comments

一条完整日志如下,在predixy中出现了很多条,且都是业务有问题的时间范围内出现的 2023-07-19 08:06:32.795441 E Handler.cpp:437 h 0 s r-xxx.redis.rds.aliyuncs.com:6379 84 will be close with status 4 EventError

手动连接predixy,使用get/set命令报错(与业务抛出的错误一致) 127.0.0.1:6379> set key111 value (error) ERR no server connection avaliable

重启predixy后恢复

我的predixy配置如下,后端是阿里云的redis ` cat /usr/local/predixy/predixy.conf Name auth-predixy Bind 0.0.0.0:6379 WorkerThreads 2 MaxMemory 1G ClientTimeout 300 BufSize 8192 Log /var/log/predixy.log LogRotate 1d LogVerbSample 0 LogDebugSample 0 LogInfoSample 10000 LogNoticeSample 1 LogWarnSample 1 LogErrorSample 1

#include /usr/local/predixy/conf.d/auth.conf #include /usr/local/predixy/conf.d/sentinel.conf #include /usr/local/predixy/conf.d/standalone.conf

Authority { Auth xxx { Mode admin } }

StandaloneServerPool { Password xxx Databases 16 Hash crc16 HashTag "{}" Distribution modula MasterReadPriority 60 StaticSlaveReadPriority 50 DynamicSlaveReadPriority 50 RefreshMethod fixed ServerTimeout 1 ServerFailureLimit 10 ServerRetryTimeout 1 KeepAlive 120 Group auth-redis { + r-xxx.redis.rds.aliyuncs.com:6379 } }

`

想请教下问题的原因,我猜测可能是阿里云的域名对应ip变了,但predixy可能没有识别出来?

haiwen1 avatar Jul 19 '23 03:07 haiwen1

这个问题解决了吗?我也碰到这个问题了。用脚本连接一会儿成功一会儿失败的

Image

destinyoooo avatar Feb 14 '25 06:02 destinyoooo

这个得看你的redis当时是否可用

fortrue avatar Feb 15 '25 11:02 fortrue

这个得看你的redis当时是否可用

检查过redis分片,分片都是能正常提供服务的。后面patch了这个pr,暂时没出现这个问题了 https://github.com/joyieldInc/predixy/pull/122

destinyoooo avatar Feb 17 '25 09:02 destinyoooo