当前位置:网站首页>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
边栏推荐
- Add joint control to gltf model
- 技术分享 | 接口自动化测试中,如何做断言验证?
- 西数移动硬盘无法读取(高枕无忧的成语)
- 最新获得淘宝app商品详情原数据 的API
- 1.2 pedestrian recognition based on incremental generation of occlusion and confrontation suppression (code understanding and experimental progress + Report)
- Program design Comprehensive Experiment III
- 十年测试老鸟聊聊移动端兼容性测试
- ES6 -- Deconstruction assignment
- C171: attendance system
- PyQt5快速开发与实战 4.3 QLabel and 4.4 文本框类控件
猜你喜欢

一看就懂的ESLint

PC Museum (3) MITs Altair 8800

Wu Hequan: digital technology empowering "double carbon" practice according to local conditions

C background GC cause and effect

'vite' is not an internal or external command, nor is it a runnable program or batch file

YY English learning about fish

Codeworks 5 questions per day (average 1500) - day 24

TS2532: Object is possibly ‘undefined‘

Rodin installs the SMT solvers plug-in

Two years after its release, the price increased by $100, and the reverse growth of meta Quest 2
随机推荐
Clickhouse 实现 MaterializedPostgreSQL
[openbmc series] 4. Start the process and use qume to simulate ast2600 EVB
使用cpolar建立一个商业网站(5)
kubectl 获取pod日志 —— 筑梦之路
LG Group announced that it would donate 3million yuan in cash, 1.2 million masks and 10000 sets of protective clothing to Hubei
继华为、联发科之后,这家手机芯片厂商宣布向武汉捐款700万
JS实现视频录制-以Cesium为例
Express: search product API by keyword
发布2年后涨价100美元,Meta Quest 2的逆生长
华为全联接大会2022开启曼谷之旅;Facebook推视频收入分成功能,创作者可获20%分成…
[C #] positive sequence, reverse sequence, maximum value, minimum value and average value
Graphic leetcode - Sword finger offer II 115. reconstruction sequence (difficulty: medium)
Function priority
京东:获得商品详情原数据 API
西数移动硬盘无法读取(高枕无忧的成语)
最新获得淘宝app商品详情原数据 的API
Explore a new generation of activities to win customers, virtualization activities win a trick | manufacturer solicitation
[RCTF2015]EasySQL-1|SQL注入
js跳转页面并刷新(本页面跳转)
盘点下互联网大厂的实习薪资:有了它,你也可以进厂