当前位置:网站首页>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
边栏推荐
- Transaction input data of Ethereum
- SAP OData development tutorial - from getting started to improving (including segw, rap and CDP)
- 11 introduction to CNN
- Svg rising Color Bubble animation
- Stepn novice introduction and advanced
- NFT Platform Security Guide (2)
- The first batch in the industry! Tencent cloud security and privacy computing products based on angel powerfl passed CFCA evaluation
- 【力扣刷题】11.盛最多水的容器//42.接雨水
- Stepn débutant et avancé
- Redis顺序排序命令
猜你喜欢

The first batch in the industry! Tencent cloud security and privacy computing products based on angel powerfl passed CFCA evaluation

简单科普Ethereum的Transaction Input Data

What is the process of switching C # read / write files from user mode to kernel mode?

JS creative icon navigation menu switch background color

(1) Keras handwritten numeral recognition and recognition of self written numbers

理想路径问题

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

OpenSea上如何创建自己的NFT(Polygon)

补齐短板-开源IM项目OpenIM关于初始化/登录/好友接口文档介绍

Panoramic analysis of upstream, middle and downstream industrial chain of "dry goods" NFT
随机推荐
Transformation of zero knowledge QAP problem
This year, the AI score of college entrance examination English is 134. The research of Fudan Wuda alumni is interesting
What is the process of switching C # read / write files from user mode to kernel mode?
8 自定义评估函数
理想路径问题
PCIe Capabilities List
若依微服务特殊字符串被过滤的解决办法
Stepn novice introduction and advanced
10 tf.data
精致妆容成露营“软实力”,唯品会户外美妆护肤产品销量激增
Development, deployment and online process of NFT project (2)
Analyse panoramique de la chaîne industrielle en amont, en aval et en aval de la NFT « Dry goods»
Development, deployment and online process of NFT project (1)
How to create your own NFT (polygon) on opensea
Keepalived 实现 Redis AutoFailover (RedisHA)1
[time complexity and space complexity]
How to configure and use the new single line lidar
R language generalized linear model function GLM, GLM function to build logistic regression model, analyze whether the model is over discrete, and use the ratio of residual deviation and residual degr
NFT Platform Security Guide (1)
NFT 平台安全指南(1)