joyieldInc / predixy

A high performance and fully featured proxy for redis, support redis sentinel and redis cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

will be close with status 4 EventError

haiwen1 opened this issue · 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可能没有识别出来?