当前位置:网站首页>Redis getting started complete tutorial: replication topology
Redis getting started complete tutorial: replication topology
2022-07-07 02:49:00 【Gu Ge academic】
Redis The replication topology can support single-layer or multi-layer replication relationships , According to the topological complexity
It can be divided into the following three categories : A master from 、 One master, many followers 、 Tree master slave structure , Here are the introduction .
1. One master and one slave structure
A master-slave structure is the simplest replication topology , Used for the slave node when the master node goes down
Provide failover support ( Pictured 6-4 Shown ). When the concurrency of application write command is high and needs to be persistent
Chemical time , It can only be turned on from the node AOF, This not only ensures data security, but also avoids persistent
Jiuhua interferes with the performance of the primary node . But it should be noted that , When the master node turns off the persistence function ,
If the primary node is offline, avoid automatic restart operation . Because the master node has not enabled the persistence function before
Data set is empty after auto restart , At this time, if the slave node continues to copy the master node, it will cause the slave node data
Also emptied , Lost the meaning of permanence . The safe way to do this is to execute... On the slave node
slaveof no one Disconnect the replication relationship with the primary node , Restart the main
Nodes to avoid this problem .

2. One master multi slave structure
One master multi slave structure ( Also known as star topology ) This enables the application side to utilize multiple slave nodes
Read and write separation ( See the picture 6-5). For scenes where reading takes up a large proportion , You can send a read command to
From the node to share the pressure of the main node . At the same time, in daily development, if you need to implement some time-consuming
Read command , Such as :keys、sort etc. , It can be executed on one of the slave nodes , Prevent slow query pairs
The main node causes congestion, which affects the stability of online services . For scenarios with high write concurrency , many
A slave node will cause the master node to write commands to send slave nodes many times

3. Tree master slave structure
Tree master slave structure ( Also known as tree topology ) So that the slave node can not only copy the master node
data , At the same time, it can continue to replicate to the next level as the master of other slave nodes . By introducing replication
Stroma , It can effectively reduce the load of the master node and the amount of data to be transmitted to the slave node . Pictured 6-6 the
in , Data write node A It will be synchronized to B and C node ,B The node synchronizes the data to D and E section
spot , Data is replicated layer by layer . When the master node needs to mount multiple slave nodes, in order to
Avoid performance interference to the primary node , Tree structure can be used to reduce the pressure of the main node .
边栏推荐
- Redis入門完整教程:問題定比特與優化
- Digital scrolling increases effect
- Convert widerperson dataset to Yolo format
- unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小
- CSDN summer camp course project analysis
- AWS learning notes (I)
- 安全巡检的工作
- Redis入门完整教程:复制原理
- Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
- CDB PDB 用户权限管理
猜你喜欢

基于ensp防火墙双击热备二层网络规划与设计

unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小

运维管理系统有哪些特色

【2022国赛模拟】多边形——计算几何、二分答案、倍增

Linear list --- circular linked list

Classify the features of pictures with full connection +softmax

Kysl Haikang camera 8247 H9 ISAPI test

从零安装Redis

Station B's June ranking list - feigua data up main growth ranking list (BiliBili platform) is released!

C # / vb. Net supprime le filigrane d'un document word
随机推荐
Django database (SQLite) basic introductory tutorial
QT common Concepts-1
数字滚动增加效果
换个姿势做运维!GOPS 2022 · 深圳站精彩内容抢先看!
Read fast RCNN in one article
惯导标定国内外研究现状小结(删减版)
MATLB|具有储能的经济调度及机会约束和鲁棒优化
CSDN 夏令营课程 项目分析
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
Kysl Haikang camera 8247 H9 ISAPI test
6-6漏洞利用-SSH安全防御
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
C语言练习题_1
What are the characteristics of the operation and maintenance management system
Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)
Oracle中日期的使用方法实例
Introduction to ins/gps integrated navigation type
Pioneer of Web3: virtual human
C#/VB. Net to delete watermarks in word documents