当前位置:网站首页>J3: redis master-slave replication
J3: redis master-slave replication
2022-07-26 19:29:00 【Groundhog breeder】
Master slave consistency
AOF and RDB It can reduce data loss , But reducing service disruption requires adding redundant copies 
Master slave synchronization for the first time
Master slave replication uses RDB no need AOF Because AOF File size ( There will also be one Key Repetitive operation ),ROB Is a compressed binary , The file is small , Fast execution
from :replicaof Lord ip Lord port
If there are many slave libraries , If the host synchronization is required , It will affect the performance of the main library , So there is Lord - from - from Pattern 
After the master-slave network is disconnected , The master-slave library will adopt the method of incremental replication , Used repl_backlog_buffer buffer
- After master-slave disconnection , The operation of the main library will write replication buffer, Will also write repl_backlog_buffer
- repl_backlog_buffer The main library will record the location of its own writing , The read location will be recorded from the Library .
- The offset written by the main library is master_repl_offset, The offset copied from the library is slave_repl_offset

- After recovering from the Library , It will be sent to the main library psync, hold slave_repl_offset Send to main library , The main database will judge the difference between the two direct

- You can adjust
repl_backlog_sizeSize ( Default 1M), Increase the size of the buffer
边栏推荐
- MySQL learning notes -2. how to improve the query performance of SQL statements
- J3:Redis主从复制
- Mongodb stats counts the space occupied by the collection
- 一些时序建模策略(一)
- 如何保护电子商务网站免受网络攻击?
- 客户案例 | 聚焦流程体验,助银行企业APP迭代
- “蔚来杯“2022牛客暑期多校训练营1
- 支持代理直连Oracle数据库,JumpServer堡垒机v2.24.0发布
- 机器学习笔记 - 构建推荐系统(6) 用于协同过滤的 6 种自动编码器
- 【MySQL必知必会】 日志Log详解
猜你喜欢

2022搭建企业级数据治理体系

客户案例 | 聚焦流程体验,助银行企业APP迭代

conda+pytorch环境教程

Network protocol: tcp/ip protocol

Leetcode simple question: the minimum total time required to fill a cup

Support proxy direct connection to Oracle database, jumpserver fortress v2.24.0 release
![[C language implementation] - dynamic / file / static address book](/img/5a/655d9a4799b3e874a454a183dee3f1.png)
[C language implementation] - dynamic / file / static address book

2022 build enterprise level data governance system

ReentrantLock学习之---基础方法

C语言-入门-语法-字符串(十一)
随机推荐
Redis learning notes-2. Use of the client
MySQL教程:MySQL数据库学习宝典(从入门到精通)
EN 1504-7混凝土结构保护和修理用产品钢筋防腐—CE认证
Wechat applet plug-in -- wxml to canvas (generate pictures)
2022搭建企业级数据治理体系
What is a server cluster? What are the advantages of overseas server clusters?
The inventory of chips in the United States is high, and the shipment of chips in China has increased rapidly and the import of 28.3 billion chips has been greatly reduced. TSMC has a showdown
Distributed transaction Seata
Synchronized理论
[postgraduate entrance examination vocabulary training camp] day 13 - reliance, expert, subject, unconscious, photograph, exaggeration, counter act
C#获取本地时间/系统时间
MySQL learning notes -2. how to improve the query performance of SQL statements
C#上位机开发—— 修改窗口图标和exe文件图标
Don't casually pass the request to the asynchronous thread. You can't handle it. You have to use the startasync method
After the exam on June 25, see how the new exam outline reviews PMP
PADS画2.54mm排针
“蔚来杯“2022牛客暑期多校训练营2
数据湖--概念、特征、架构与案例概述
[MySQL from introduction to proficiency] [advanced chapter] (VIII) clustered index & non clustered index & joint index
File depth monitoring strategy
