当前位置:网站首页>[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
边栏推荐
- 由单片机XTALIN引脚和XTALOUT引脚导出的对晶体震荡电路的深入理解
- Built in module 10.18
- Hacker introductory tutorial (very detailed) from zero basic introduction to proficiency, it is enough to read this one.
- Introduction to reinforcement learning
- 电容串联与并联以及电容串联与平衡电阻
- [Redis] Redis几种部署方式
- C background GC cause and effect
- codeforces每日5题(均1500)-第二十四天
- 第2章 入门
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
猜你喜欢

Gestureoverlayview (gesture recognition 2)

新库上线 | CnOpenData中国全部专利详细地址数据

Chapter 2 Introduction

mysql函数汇总之系统信息函数

JS event listening mouse keyboard form page onclick onkeydown onchange

Global function

vlan试验2021.1.14

Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
![[paper reading] rich feature hierarchies for accurate object detection and semantic segmentation](/img/a9/690f52b5c4afba684f0add2434888c.png)
[paper reading] rich feature hierarchies for accurate object detection and semantic segmentation

Underlying principle of mvcc
随机推荐
Basic functions of pytorch tensor
mysql函数汇总之系统信息函数
pytorch lstm+attention
focal loss
Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
22年PMP考试【全真敏捷试题】
函数总结
mysql数据库中的数据如何加密呢?mysql8.0自带新特性
[paper reading] rich feature hierarchies for accurate object detection and semantic segmentation
JS 数组方法 forEach 和 map 比较
ACL11.12
AutoCompleteTextView (input box pre match)
Version announcement | Apache Doris 1.1 release version officially released!
Broadcastreceiver (broadcast)
由单片机XTALIN引脚和XTALOUT引脚导出的对晶体震荡电路的深入理解
软件配置 | tigerVNC的下载、安装及配置
容器总结
Intent (whether there is return value to jump)
Overview of deep active learning 2020
C191: password compilation