当前位置:网站首页>Redis集群形式--哨兵模式集群和高可用模式集群---Redis学习笔记003
Redis集群形式--哨兵模式集群和高可用模式集群---Redis学习笔记003
2022-06-10 19:14:00 【脑瓜凉】
对于redis集群,我们搭建的时候可以选择两种模式:
这里记录一下,至于如何搭建,网上教程太多了,这里不多说了,记录一下到时候用到时候,可以想到应该使用哪种模式,到时候去搭建就可以了
哨兵模式的集群:

在redis3.0以前的版本要实现集群一般是借助哨兵sentinel工具来监控master节点的状态,如果master节点异常,则会做主从切换,将某一台slave作为master,哨兵的配置略微复杂,并且性能和高可用性等各方面表现一般,特别是在主从切换的瞬间存在访问瞬断的情况,而且哨兵模式只有一个主节点对外提供服务,没法支持很高的并发,且单个主节点内存也不宜设置得过大,否则会导致持久化文件过大,影响数据恢复或主从同步的效率
redis的高可用集群模式:

由多个主从节点群组成的分布式服务器群,它具有复制、高可用和分片特性。Redis集群不需要sentinel哨兵也能完成节点移除和故障转移的功能。需要将每个节点设置成集群模式,这种集群模式没有中心节点,可水平扩展,据官方文档称可以线性扩展到上万个节点(官方推荐不超过1000个节点)。redis集群的性能和高可用性均优于之前版本的哨兵模式,且集群配置非常简单
所以以后使用的时候可以优先考虑搭建高可用的redis集群使用.
边栏推荐
- Go语学习笔记 - 跨域配置、全局异常捕获 | Web框架Gin(四)
- Logback exclude specified package / class / method log output
- On the development trend of enterprise storage: cold thoughts on open source storage
- 高考后选择哪所学校?VR全景校园全方位展示
- torch.nn.Parameter的简单理解//未完待续,待我看懂这段
- When the college entrance examination is opened, VR panorama can see the test site in this way
- 2022.05.26 (lc_1143_longest common subsequence)
- Batch detection of specified ports of different URLs (py script)
- 2022 software test interview strategy for the strongest version of fresh students to help you get directly to the big factory
- Rotated sorted array
猜你喜欢

How to add independent hotspots in VR panoramic works?

2022.05.28 (lc_516_longest palindrome subsequence)

Zabbix_ Monitoring ssh/crond Service - wechat alarm

VR全景作品中各式各样的嵌入功能是如何做到的?

ZABBIX server trapper Remote Code Execution Vulnerability (cve-2017-2824)

用 Plotly 绘制了几张精湛的图表,美翻了!!

Zabbix_原理架构-安装部署-自定义监控

Integrate machine learning to make Chrome browser more "understand" you

测试apk-异常管控netLocation攻击者开发
![[advanced C language] advanced pointer [Part 1]](/img/a7/7a6f5286307d80b553c11582cf1827.png)
[advanced C language] advanced pointer [Part 1]
随机推荐
零信任架构
How to add aggregation hotspots in VR panorama? How to add a content module?
Harbor image pull voucher configuration
Soft deletion of data - when? How to realize it?
软件定义边界(SDP)
Zabbix_监控ssh/crond服务-微信告警
FS4100 锂电充电管理IC输入12V给8.4V充电IC
Source code analysis of Tencent libco collaboration open source library (III) -- Exploring collaboration switching process assembly register saving and efficient collaboration environment
2022 software test interview strategy for the strongest version of fresh students to help you get directly to the big factory
Office technical lecture: punctuation - Chinese - Daquan
Flutter series: UI layout introduction
Congratulations | Najie research group of Medical College revealed the function of junB in the process of differentiation of artificial blood progenitor cells in vitro through multi group analysis
I drew several exquisite charts with plotly, which turned out to be beautiful!!
Unity 分析内置地形(Terrain)的渲染并做一些有意思的事情
Tencent libco collaboration open source library source code analysis full series summary blog
FS2117升压IC输出5V2.4A同步整流
腾讯云数据库TDSQL-大咖论道 | 基础软件的过去、现在、未来
最近的工作
NFS network mount to create server image
监控易打造“准生态”格局,赋能信创“平替”