当前位置:网站首页>[redis] several deployment methods of redis
[redis] several deployment methods of redis
2022-07-27 20:04:00 【Boss, vegetables, bring】
stand-alone
advantage :
Simple deployment
shortcoming :
Performance is limited by the performance of a single server , Difficult to expand horizontally , Poor disaster tolerance
Master slave synchronization
What is it? :
Master slave synchronization is a master node , Multiple slave Node and slave Nodes can also have slave node
There are two ways of master-slave synchronization : Full synchronization and incremental synchronization
- Full amount of synchronization :master Generate RDB issue slave,slave Load write
- The incremental synchronization :master Every data operation is synchronized to slave
advantage :
Master slave synchronization allows master Responsible for writing operations ,slave Responsible for reading operation , The performance is better than that of a single machine
shortcoming :
Performance is affected by a single master Limit , Not easy to expand horizontally , Poor disaster tolerance , Cannot be highly available
Sentinel mechanism
What is it? :
One master, Multiple slave, Each node is monitored by the sentinel process , The sentry checks every once in a while master Whether the connection is lost , If you lose the connection , Other sentinels also check master Whether the connection is lost , If more than half of the Sentinels check master Lose connection ,master Offline , from slave Choose one of them to become a new master. If it is slave Lose connection , be slave Offline .
advantage :
High availability , Strong disaster tolerance
shortcoming :
Performance is still affected by individual master Limit , Not easy to expand horizontally
colony
What is it? :
Multiple master, Multiple slave, Sentinels can be used .
The data is based on crc-16 Algorithm will key hash 16383 individual slot, Different master Responsible for different data .
advantage :
Strong performance , Easy to expand , High availability , Strong disaster tolerance
shortcoming :
Complex deployment , The high cost
边栏推荐
猜你喜欢

codeforces每日5题(均1500)-第二十四天

Version announcement | Apache Doris 1.1 release version officially released!

中国业务型CDP白皮书 | 爱分析报告

System information function of MySQL function summary

Detailed introduction to common coordinate system of cesium

Qtexttospeech class of QT realizes voice broadcast function

【OpenBMC 系列】4.启动流程 使用qume模拟ast2600-evb

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

黑客入门教程(非常详细)从零基础入门到精通,看完这一篇就够了。

PMP每日一练 | 考试不迷路-7.27(包含敏捷+多选)
随机推荐
C#网络应用编程,实验2:IP地址转换和域名解析练习
贪心
Broadcastreceiver (broadcast)
cesium基本控件介绍
Systemservice (system service)
ContextMenu (context menu)
Rodin 安装 SMT Solvers 插件
Normalization and standardization
[Redis] Redis穿透、雪崩和击穿
ContentProvider of four components
mysql函数汇总之系统信息函数
ACL11.12
Qtexttospeech class of QT realizes voice broadcast function
11.2DHCP
ECU的软硬件架构
软件配置 | tigerVNC的下载、安装及配置
VALN 11.9
Capacitance in series and in parallel and capacitance in series and balance resistance
pytorch lstm+attention
函数优先顺序