当前位置:网站首页>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
- 6 custom layer
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Svg animation around the earth JS special effects
- 【时间复杂度和空间复杂度】
- Supplement the short board - Open Source im project openim about initialization / login / friend interface document introduction
- JS教程之Electron.js设计强大的多平台桌面应用程序的好工具
- C# 读写文件从用户态切到内核态,到底是个什么流程?
- Audio and video learning (II) -- frame rate, code stream and resolution
- 2 three modeling methods
猜你喜欢

振动式液量检测装置

svg野人动画代码

Unlock the value of data fusion! Tencent angel powerfl won the "leading scientific and Technological Achievement Award" at the 2021 digital Expo

2 three modeling methods

Svg animation around the earth JS special effects

1 张量的简单使用

精致妆容成露营“软实力”,唯品会户外美妆护肤产品销量激增

SVG大写字母A动画js特效

Nanopi duo2 connection WiFi

JVM notes
随机推荐
Canvas three dot flashing animation
mha 切换(操作流程建议)
3 keras版本模型训练
2 三种建模方式
JS creative icon navigation menu switch background color
请指教同花顺软件究竟是什么?网上开户是否安全么?
固件供应链公司Binarly获得WestWave Capital和Acrobator Ventures的360万美元投资
R语言广义线性模型函数GLM、glm函数构建逻辑回归模型(Logistic regression)、分析模型是否过离散(Overdispersion)、使用残差偏差与二项式模型中的剩余自由度的比率评估
Supplement the short board - Open Source im project openim about initialization / login / friend interface document introduction
NFT 平台安全指南(2)
Oilfield exploration problems
Panoramic analysis of upstream, middle and downstream industrial chain of "dry goods" NFT
4 自定义模型训练
9 Tensorboard的使用
神经网络“炼丹炉”内部构造长啥样?牛津大学博士小姐姐用论文解读
面试踩坑总结一
Swiftui retrieves the missing list view animation
How to create your own NFT (polygon) on opensea
NFT合约基础知识讲解
SAP OData development tutorial - from getting started to improving (including segw, rap and CDP)