当前位置:网站首页>Record a redis value, which is not a small production accident you want
Record a redis value, which is not a small production accident you want
2022-04-22 16:38:00 【Running idle fish yard farmer】
background
When writing a settlement business, you need to dynamically start from redis Value judgment ,redis Before the value is the value of the last minute , But now we have modified the technical scheme , Revised to redis Stored is the value of the previous cycle . The modified code is tested in the test environment and pre release environment without any problems . So it was released to the production environment , And empty the old redis, It is found that the settled data is always abnormal . So we started the road of investigation . The company's redis It is commonly used , One master and two slaves election mechanism
The way to solve the problem
Just went online and found something wrong , So I added a log , Redistributed and found redis The value obtained is not from the previous cycle , It's the last minute . Connect... With tools ( The tool is connected to the previous master ). It is found that the data from the above is wrong , I was immediately blinded . Went to the bathroom , Think about it , Finally, check the existing master-slave situation , It is found that the connection is from , Finally, modify the connection to the main , Restore to normal after deletion and re creation .
It was just a small accident , But it is often overlooked , Because the master and slave may change , Test environment and pre release environment redis Are single node . Ignoring the master-slave thing , This led to the above joke . I hope you can take a warning
版权声明
本文为[Running idle fish yard farmer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221637369941.html
边栏推荐
- Huawei machine test question - hj60 find the two prime numbers that form an even number closest to each other
- 网络舆情监控系统
- 80386汇编_寄存器 & 寻址方式介绍
- UI测试有哪些功能问题?-泽众云测试
- 蓝桥杯练习011
- Huawei machine test questions -- hj54 expression evaluation
- Test life | less than 2 years after graduation, 0 experience and won the 30W annual salary of a well-known Internet enterprise. How did he do it?
- 两个有序链表合并(相同内容删去)
- Code implementation of sequence table
- 国美新动作“真选”“严选”赋能 多维度护航品质消费
猜你喜欢

TM of NLP: Based on gensim library, call 20newsgr to learn doc topic distribution and save it as train SVM LDA txt、test-svm-lda. txt

数据库自动备份报错,提示SQLServerAgent 当前未运行,因此无法将此操作通知它。

详解JVM内存模型

Random talk on homology strategy (SOP) and cross domain resource sharing (CORS)

【Appium】有道云app的unittest框架简单移植及驱动文件的设计

蓝桥杯练习014

Installing STEP7 micro / win v4.0 in Windows 10 0 SP9. After installation, you will be prompted with assertion program: pniopcac exe File

Interview:人工智能岗位面试—人工智能岗位求职之机器学习算法工程师必备知识框架结构图

STM32的一种串口数据接受方式

国美新动作“真选”“严选”赋能 多维度护航品质消费
随机推荐
蓝桥杯练习018
C#判断数据库返回记录是否是NULL的DBNull 类DBNull.Value.Equals(row[fieldName]
记一次对oracle数据库表空间异常增长的分析和处理
Blue Bridge Cup exercise 016
Hx711 weight sensor wiring
C# ODBC将一个文件夹的文件装载到ORACLE数据库BLOB列,并将BLOB列下载到另一个文件夹
【Appium】有道云app的unittest框架简单移植及驱动文件的设计
12.88万元的小魔驼2.0,毫末智行托起末端物流自动配送的商用梦想
Leetcode题库62. 不同路径(递归 c实现)
Test life | less than 2 years after graduation, 0 experience and won the 30W annual salary of a well-known Internet enterprise. How did he do it?
Dynamically drag the width of two divs
Huawei machine test question - hj60 find the two prime numbers that form an even number closest to each other
面向全球市场,PlatoFarm今日登录HUOBI等全球四大平台
Blue Bridge Cup practice 011
AQS源码阅读
网络舆情监控系统
Redis optimization series (I) building redis master-slave based on docker
How to select one of the two lines that coincide in SolidWorks
如何关闭联想杀毒Plus
TM of NLP: Based on gensim library, call 20newsgr to learn doc topic distribution and save it as train SVM LDA txt、test-svm-lda. txt