当前位置:网站首页>Kept to implement redis autofailover (redisha)
Kept to implement redis autofailover (redisha)
2022-06-26 16:07:00 【franket】
Preface
Redis It's an open source , BSD Permitted , key-value Caching and storage
About it HA, There are three ways :
Sentinel
Redis Cluster
Keepalived + Redis
The first two are official HA The way , Each of them has its own advantages and disadvantages :
Sentinel Use a daemon for running Redis Instance to monitor and manage , It can effectively realize distributed monitoring and voting , however failover later , new master about client I don't know , Need to ask sentinel, So this mechanism needs client End logic support
Redis Cluster A very complete and efficient construction of a distributed cluster ,Redis Mutual monitoring and voting between instances , Bootstrap and failover , The official recommendation requires at least three nodes , Then it's better to bring one each slave, So the six nodes are the starting price ( Otherwise, the cluster is fragile , It is easy to enter the failure state ), Node to use cluster mode , And build the cluster relationship in advance at the beginning of data distribution , So this mechanism needs to be redeployed , And in order to avoid receiving MOVED Opening and closing caused by steering , Also needed client End logic optimization and support
Keepalived + Redis The implementation of is not official HA programme , In terms of monitoring and failover, it is not more intelligent than the above two ( It is realized by user-defined script , relatively speaking low quite a lot ), It's because it's old enough , So it has a feature that neither of the above two have , It is almost transparent to the client , No modification is necessary , For the currently running redis The instance does not need to be modified .
So let's share that Keepalived + Redis Configuration method of
Tip: current version Redis 3.0.4
边栏推荐
- R language plot visualization: plot visualizes the normalized histogram, adds the density curve KDE to the histogram, and uses geom at the bottom edge of the histogram_ Adding edge whisker graph with
- Comprehensive analysis of discord security issues
- Development, deployment and online process of NFT project (2)
- 7 user defined loss function
- JS教程之使用 ElectronJS、VueJS、SQLite 和 Sequelize ORM 从 A 到 Z 创建多对多 CRUD 应用程序
- Interview pit summary I
- How to configure and use the new single line lidar
- 首例猪心移植细节全面披露:患者体内发现人类疱疹病毒,死后心脏重量翻倍,心肌细胞纤维化丨团队最新论文...
- 大话领域驱动设计——表示层及其他
- NFT Platform Security Guide (1)
猜你喜欢
3 keras版本模型训练
油田勘探问题
全面解析Discord安全问题
简单科普Ethereum的Transaction Input Data
The first batch in the industry! Tencent cloud security and privacy computing products based on angel powerfl passed CFCA evaluation
SVG大写字母A动画js特效
5000字解析:实战化场景下的容器安全攻防之道
精致妆容成露营“软实力”,唯品会户外美妆护肤产品销量激增
零知识 QAP 问题的转化
SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)
随机推荐
手写数字体识别,用保存的模型跑自己的图片
Panoramic analysis of upstream, middle and downstream industrial chain of "dry goods" NFT
NFT 平台安全指南(2)
11 introduction to CNN
零知识 QAP 问题的转化
NFT 项目的开发、部署、上线的流程(2)
R language plotly visualization: Violin graph, multi category variable violin graph, grouped violin graph, split grouped violin graph, two groups of data in each violin graph, each group accounts for
Selenium chrome disable JS disable pictures
H5 close the current page, including wechat browser (with source code)
8 user defined evaluation function
Golang 1.18 go work usage
JVM notes
Anaconda3安装tensorflow 2.0版本cpu和gpu安装,Win10系统
全面解析Discord安全问题
Svg capital letter a animation JS effect
Ideal path problem
JS教程之Electron.js设计强大的多平台桌面应用程序的好工具
Svg rising Color Bubble animation
stm32h7b0替代h750程序导致单片机挂掉无法烧录程序问题
【力扣刷题】单调栈:84. 柱状图中最大的矩形