当前位置:网站首页>简单解决redis cluster中从节点读取不了数据(error) MOVED
简单解决redis cluster中从节点读取不了数据(error) MOVED
2022-07-05 11:31:00 【我们一直在路上】
redis cluster集群中slave节点能成功复制master节点数据槽数据,但是无法get数据,显示只能到对应的master节点读取: (error) MOVED 742 36.112.201.233:6110
原因:Redis Cluster集群中的从节点,官方默认设置的是不分担读请求的、只作备份和故障转移用,当有请求读向从节点时,会被重定向对应的主节点来处理
解决办法:在get数据之前先使用命令readonly,这个readonly告诉 Redis Cluster 从节点客户端愿意读取可能过时的数据并且对写请求不感兴趣

注意:断开连接后readonly就失效了,再次连接需要重新使用该命令
边栏推荐
- 边缘计算如何与物联网结合在一起?
- 【爬虫】wasm遇到的bug
- Risc-v-qemu-virt in FreeRTOS_ Scheduling opportunity of GCC
- Go language learning notes - first acquaintance with go language
- AutoCAD -- mask command, how to use CAD to locally enlarge drawings
- In the last process before the use of the risk control model, 80% of children's shoes are trampled here
- ibatis的动态sql
- POJ 3176 cow bowling (DP | memory search)
- [office] eight usages of if function in Excel
- Sklearn model sorting
猜你喜欢

高校毕业求职难?“百日千万”网络招聘活动解决你的难题

Detailed explanation of MATLAB cov function

7 themes and 9 technology masters! Dragon Dragon lecture hall hard core live broadcast preview in July, see you tomorrow

Intelligent metal detector based on openharmony

AutoCAD -- mask command, how to use CAD to locally enlarge drawings
![[crawler] Charles unknown error](/img/82/c36b225d0502f67cd04225f39de145.png)
[crawler] Charles unknown error

如何让你的产品越贵越好卖

COMSOL -- 3D casual painting -- sweeping

IPv6与IPv4的区别 网信办等三部推进IPv6规模部署

idea设置打开文件窗口个数
随机推荐
技术管理进阶——什么是管理者之体力、脑力、心力
How to get a token from tokenstream based on Lucene 3.5.0
Solve the grpc connection problem. Dial succeeds with transientfailure
AUTOCAD——遮罩命令、如何使用CAD对图纸进行局部放大
Pytorch training process was interrupted
Four departments: from now on to the end of October, carry out the "100 day action" on gas safety
How can edge computing be combined with the Internet of things?
COMSOL -- 3D casual painting -- sweeping
7.2每日学习4
CDGA|数据治理不得不坚持的六个原则
Cron expression (seven subexpressions)
go语言学习笔记-初识Go语言
ZCMU--1390: 队列问题(1)
管理多个Instagram帐户防关联小技巧大分享
解决readObjectStart: expect { or n, but found N, error found in #1 byte of ...||..., bigger context ..
How to understand super browser? What scenarios can it be used in? What brands are there?
Question and answer 45: application of performance probe monitoring principle node JS probe
项目总结笔记系列 wsTax KT Session2 代码分析
How to introduce devsecops into enterprises?
DDR4硬件原理图设计详解