当前位置:网站首页>Redis sentinel mode
Redis sentinel mode
2022-07-23 15:54:00 【shuiloge】
Regularly detect whether the host fails , If it fails, it will automatically change from machine to host according to voting
Adjustment structure First complete the mode of one master and two servants ,6379 With 80、81
Self defined /myredis New under the directory sentinel.conf file , The name must not be wrong
Deploy sentinels , Fill in the content
sentinel monitor The name of the monitored host ( Name yourself ) 127.0.0.1 6379 1 Such as
sentinel monitor host6379 127.0.0.1 6379 1 |
Last on top A number 1, After the host is hung up salve Vote to see who takes over as the host , A large number of votes Of Become a host
cd /usr/local/redis/bin/
Activate the sentry ./redis-sentinel ../conf/sentinel.conf
Normal master-slave demonstration
The original master Hang up
Vote for the new election
Start again from the master and slave ,info replication see
problem : If the previous master Restart back , Will it be double master Conflict ? Can't Because the previous host The data is incomplete
Because all the writing operations are first in Master On the operation , Then sync update to Slave On , So from Master Synchronize to Slave The machine has a certain delay , When the system is busy , The delay problem will be more serious ,Slave The increase in the number of machines will make the problem more serious .
边栏推荐
- Part I basic information of the project
- Gear 月度更新|6 月
- 【无标题】
- MD5 strong collision, secondary decoding,
- Camera flashlight modification
- Self capacitance touch controller for wearable devices it7259q-13, it7259ex-24
- 对专利的学习
- CONDA set up proxy
- Fake XML cookbook of XML xxE vulnerability
- Find a specific number in an ordered array (binary search or half search)
猜你喜欢

C语言经典例题-逆序打印输入的两位数

Idea five free plug-ins to improve efficiency
![[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado](/img/94/5b914d0ce2a2c3e1760d1b27321479.png)
[attack and defense world web] difficulty Samsung 9-point introductory question (middle): ics-05, easytornado

【攻防世界WEB】难度三星9分入门题(上):simple_js、mfw

Axure advanced

C语言经典例题-用4×4矩阵显示从1到16的所有整数,并计算每行、每列和每条对角线上的和

946. 验证栈序列 ●● & 剑指 Offer 31. 栈的压入、弹出序列 ●●

C语言经典例题-求最少数量钞票

Six ways of uniapp route jump

Chapter 4 event handling of quick mastering QML
随机推荐
[try to hack] SQL injection less7 (into outfile and Boolean blind annotation)
redis 主从复制
(Zset)Redis底层是如何用跳表进行存储的
10100
aws篇3 go语言如何publish message 到iot的MQTT
【云原生】docker环境中安装mysql、redis服务
Fileinputformat of MapReduce inputformat
harbor镜像仓库
[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.
Kirin V10 source code compilation qtcreater4.0.3 record
php:filter伪协议之[BSidesCF 2020]Had a bad day
对专利的学习
Exclusive interview | open source Summer Star Niu Xuewei
UmiJs - qiankun主子应用之间,数据的传递
超详细MP4格式分析
day1
什么是真正的 HTAP ?(二)挑战篇
Part V Druid data source introduction
Bug modification
[paper study] source mixing and separation robot audio steganography