当前位置:网站首页>Redis queue, RDB learning
Redis queue, RDB learning
2022-07-27 20:20:00 【yu-yuan】
Channel publishing and message subscription
| Release the news | publish queue value |
| Listen to the message | subscribe queue |
| Monitor multiple channels at once | psubscribe queue |
| Manage view therefore Release and monitor | pubsub queue |
RDB
Persistence : Store the data in a device that will not disappear after power failure , Usually on the hard disk
Common persistence methods :
- Master-slave : By saving and persisting from the server , Such as mongoDB Of replication sets Set up
- journal : Operation generates relevant logs , And recover data through logs
- couchDB The data content is not modified , Just add , Then the file itself is a log , No loss of data
RDB Snapshot persistence
rdb How it works :

every other N minute perhaps N Time After writing operation , From memory dump Data formation rdb file , Compress Put it in the backup Catalog
RDB Advantages and disadvantages : Strong recoverability to data , Fast recovery , But in some cases, data will be lost
Parameter Introduction

save 3600 1 namely 3600 Seconds later, at least 1 Keywords send changes
save 300 100 Must be 300 Seconds later 10 Keywords changed
save 60 10000 Must be 60 Seconds later, at least 10000 Keywords changed
( These three options After comment rdb Disabled )

stop-writes-on-bgsave-error stay rdb Error in file export , At the same time, prevent further writing redis Ensure the consistency of data

rdbcompression rdb The file data is too large , Compress on Export

rdbchecksum from rdb Import data into memory , Check rdb The integrity of

dbfilename Derived rdb file name

Derived rdb The file is in that directory
Be careful :
stay 2 Between savepoints , Power failure will result in loss 1-N Minute data therefore redis Added aof (append ohly file)
Please look at the next post -->Redis aof Log persistence
边栏推荐
- libpcap库和pcap_sendpacket接口函数了解
- Ten year test old bird talk about mobile terminal compatibility test
- Built in function time date function
- 盘点下互联网大厂的实习薪资:有了它,你也可以进厂
- ZJNU 22-07-26 比赛心得
- 华为手机出货超苹果成全球第二,但面临大量库存需要清理
- Understanding of basic concepts of channel capacity and channel bandwidth
- kubectl 获取pod日志 —— 筑梦之路
- Zepto入门详解
- Illustration leetcode - 592. Fraction addition and subtraction (difficulty: medium)
猜你喜欢

C language -- array

如何运行 kevinchappell / formBuilder

多点双向重发布及路由策略的简单应用

PC Museum (3) MITs Altair 8800

Capacitance in series and in parallel and capacitance in series and balance resistance

Chapter 3 basic operation

GLTF模型添加关节控制

Ms721 load test
![[paper reading] rich feature hierarchies for accurate object detection and semantic segmentation](/img/a9/690f52b5c4afba684f0add2434888c.png)
[paper reading] rich feature hierarchies for accurate object detection and semantic segmentation

YY English learning about fish
随机推荐
Built in function time date function
内置函数时间日期函数
产品经理:排查下线上哪里冒出个“系统异常”的错误提示
Libpcap library and pcap_ Sendpacket interface function understanding
2022年,软件测试还能学吗?别学了,软件测试岗位饱和了...
Technology sharing | how to do Assertion Verification in interface automated testing?
汇顶科技:收购恩智浦VAS业务已完成交割
Assignment 1 - Hello World ! - Simple thread Creation
kubectl 获取pod日志 —— 筑梦之路
多点双向重发布及路由策略的简单应用
To share the denoising methods and skills of redshift renderer, you must have a look
libpcap库和pcap_sendpacket接口函数了解
Capacitance in series and in parallel and capacitance in series and balance resistance
LED高精度体重秤方案规格书
LG Group announced that it would donate 3million yuan in cash, 1.2 million masks and 10000 sets of protective clothing to Hubei
Rodin 安装 SMT Solvers 插件
技术分享 | 接口自动化测试中,如何做断言验证?
JD: search product API by keyword
[map set]
Illustration leetcode - 592. Fraction addition and subtraction (difficulty: medium)