当前位置:网站首页>Simply solve the problem that the node in the redis cluster cannot read data (error) moved

Simply solve the problem that the node in the redis cluster cannot read data (error) moved

2022-07-05 11:45:00 We've been on the road

redis cluster In the cluster slave Node can replicate successfully master Node data slot data , But can not get data , Only the corresponding master Node read : (error) MOVED 742 36.112.201.233:6110
reason :Redis Cluster Slave node in cluster , The official default setting is not to share read requests 、 Only for backup and failover , When there is a request to read to the slave node , It will be redirected to the corresponding master node to handle
terms of settlement : stay get Use the command before data readonly, This readonly tell Redis Cluster The client from the node is willing to read potentially obsolete data and is not interested in write requests

 Insert picture description here

Be careful : After disconnection readonly Is failure , To connect again, you need to use this command again

原网站

版权声明
本文为[We've been on the road]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051131475480.html