redis节点移动异常
在我们的生产环境中重新列出了聚类模式,有6个节点,3个主节点和3个从属节点。当由于网络和其他原因而切换节点时,redis-client无法自动刷新这些节点,并将报告异常 移动5649 192.168.1.1:6379
我使用的VERTX-REDIS-CLIENT版本是4.2.1 我的配置看起来像这样:
RedisOptions options = new RedisOptions();
options.setType(RedisClientType.CLUSTER)
.setRole(RedisRole.MASTER)
.setUseReplicas(RedisReplicas.NEVER)
每次遇到此问题时,我都需要重新启动应用程序服务以还原它。我想问是否有任何方法可以使Vertx-redis-client自动刷新节点?
谢谢〜
Redis in our production environment is in cluster mode, with 6 nodes, 3 master nodes and 3 slave nodes. When nodes are switched due to network and other reasons, Redis-client cannot automatically refresh these nodes, and will report exceptionMOVED 5649 192.168.1.1:6379
The vertx-redis-client version I use is 4.2.1
My configuration looks like this:
RedisOptions options = new RedisOptions();
options.setType(RedisClientType.CLUSTER)
.setRole(RedisRole.MASTER)
.setUseReplicas(RedisReplicas.NEVER)
Every time I encounter this problem, I need to restart my application service to restore it. I want to ask if there is any way to make vertx-redis-client automatically refresh the node?
Thank you ~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论