Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisServerException #198

Open
ZLVincent opened this issue Aug 5, 2024 · 4 comments
Open

RedisServerException #198

ZLVincent opened this issue Aug 5, 2024 · 4 comments

Comments

@ZLVincent
Copy link

环境:AWS redis

问题描述:我们在连接AWS redis时,配置的是AWS提供的域名(该域名解析后分别是001-master节点和002-slave节点,由于某些原因这是一个一主一从的cluster),由于这个cluster之前发生过主从切换,现在001是slave,002是master。之前一直使用的CSRedis没有任何问题,在升级到FreeRedis后报错:FreeRedis.RedisServerException: MOVED 12325 XXX-002-XXX:6379

image

想咨询下这种情况对于FreeRedis怎么配置?

@2881099
Copy link
Owner

2881099 commented Aug 5, 2024

如果可以的话,请提供测试环境

@ZLVincent
Copy link
Author

版本:
.net8.0
AWS Redis 7.0.7
k8s 1.28
FreeRedis 1.3.0

@ZLVincent
Copy link
Author

无法暴露测试环境,或者我问下CSRedis中对于云服务器是否有做过特殊处理,例如先自动查询cluster的master节点地址然后创建connection的逻辑。因为我看到CSRedis的配置里有一个testcluster参数
image

在FreeRedis版本中是否修改了这部分逻辑?

@2881099
Copy link
Owner

2881099 commented Aug 5, 2024

FreeRedis没有testcluster逻辑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants