当前位置:网站首页>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
边栏推荐
- 补齐短板-开源IM项目OpenIM关于初始化/登录/好友接口文档介绍
- JS教程之使用 ElectronJS、VueJS、SQLite 和 Sequelize ORM 从 A 到 Z 创建多对多 CRUD 应用程序
- NFT 项目的开发、部署、上线的流程(1)
- Svg rising Color Bubble animation
- Panoramic analysis of upstream, middle and downstream industrial chain of "dry goods" NFT
- 李飞飞团队将ViT用在机器人身上,规划推理最高提速512倍,还cue了何恺明的MAE...
- H5 close the current page, including wechat browser (with source code)
- NFT 平台安全指南(1)
- LeetCode 单周赛298,前三题
- IntelliJ idea -- Method for formatting SQL files
猜你喜欢

1 张量的简单使用

5000 word analysis: the way of container security attack and defense in actual combat scenarios

STEPN 新手入門及進階

The details of the first pig heart transplantation were fully disclosed: human herpes virus was found in the patient, the weight of the heart doubled after death, and myocardial cell fibrosis

Tweenmax+svg switch color animation scene

SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)

手写数字体识别,用保存的模型跑自己的图片

10 tf. data

Oilfield exploration problems

今年高考英语AI得分134,复旦武大校友这项研究有点意思
随机推荐
Net基于girdview控件实现删除与编辑行数据
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)
3 keras版本模型训练
[untitled]
PCIe Capabilities List
Comprehensive analysis of discord security issues
OpenSea上如何创建自己的NFT(Polygon)
若依如何实现接口限流?
H5 close the current page, including wechat browser (with source code)
svg canvas画布拖拽
Interview pit summary I
Exquisite makeup has become the "soft power" of camping, and the sales of vipshop outdoor beauty and skin care products have surged
Keepalived 实现 Redis AutoFailover (RedisHA)1
6 自定义层
JS text scrolling scattered animation JS special effect
This year, the AI score of college entrance examination English is 134. The research of Fudan Wuda alumni is interesting
人人都当科学家之免Gas体验mint爱死机
2 三种建模方式
NFT transaction principle analysis (2)