当前位置:网站首页>Kept to implement redis autofailover (redisha) 14
Kept to implement redis autofailover (redisha) 14
2022-06-27 01:01:00 【franket】
Here are the differences
4c4
< router_id LVS_redis-b
router_id LVS_redis-a 19c19
< priority 139
priority 138priority The range is 1-255
Note: priority High values will automatically become master , So when assigning priorities master To set a relatively high value , But it can't be compared with backup Higher than weight Adjustment value , otherwise keepalived The check found that the service was unavailable , Corresponding priority After reducing , It's still better than backup High priority , So I will continue to act as master , Don't let go VIP, At this point, the client access will not achieve the desired results
Startup sequence
This redis+keepalived The start-up sequence of the cluster is quite particular , Otherwise, there will be an accident
Start as master Of redis ( Or there is just one running in production redis)
Start as slave Of redis
stay slave On the implementation SLAVEOF And master To synchronize ( Select a service low peak point )
adjustment master Upper keepalived priority Make its value s.priority < m.priority < s.priority+weight ( In order to master By keepalived After checking and confirming the failure ,slave You can become a new candidate by your own priorities master)
start-up master Upper keepalived
start-up slave Upper keepliaved
Note: This way you can only fight once master Unplanned failover of , Or planned switching , If you want to use it again , You have to manually build again in the above order , Why not automate , Because ,SLAVEOF It's a lethal order , Normal conditions can cause significant stress on the server , Accidents can ruin master The data on the , For example, with an empty redis To synchronize , Will cause their own data to be erased
边栏推荐
- 目前哪个证券公司炒股开户是最好最安全的?
- Unable to create a folder to save the sketch: MKDIR sketch
- Keepalived 实现 Redis AutoFailover (RedisHA)14
- IIS 部署静态网站和 FTP 服务
- [UVM actual battle== > episode_3] ~ assertion, sequence, property
- CEC-I 中华学习机使用说明与问答
- Play OLED, u8g2 animation, increasing numbers, random triangles, etc
- Lwip之定时机制
- Gaussian and Summary Stats
- 对象的访问机制及其他
猜你喜欢

根据文件名批量生成文件夹
![Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]](/img/cc/a0be58eddc72c22a9a6ee5c61eb81a.png)
Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]

ArcGIS 镶嵌数据集切片丢失问题处理

ESP32-添加多目录的自定义组件
![The [MySQL] time field is set to the current time by default](/img/40/5f1d3448259ab703c4b5dc29713a99.png)
The [MySQL] time field is set to the current time by default

Review the old and know the new -- constant renewal at normal temperature

Implementation of ARP module in LwIP

05 | 規範設計(下):commit 信息風格迥异、難以閱讀,如何規範?
![Custom jsp[if, foreach, data, select] tag](/img/a2/fc75c182d572d86f4466323e31d6c3.png)
Custom jsp[if, foreach, data, select] tag

简单快速的数网络(网络中的网络套娃)
随机推荐
自定义类加载器对类加密解密
These 10 copywriting artifacts help you speed up the code. Are you still worried that you can't write a copywriting for US media?
At present, which securities company is the best and safest to open an account for stock speculation?
CPU的异常处理
XML learning notes
统计无向图中无法互相到达点对数[经典建邻接表+DFS统计 -> 并查集优化][并查集手册/写的详细]
数字格式化的 js 库
07 | 工作流设计:如何设计合理的多人开发模式?
How to control the quality of HD slip ring in the production process
Custom jsp[if, foreach, data, select] tag
Lwip之定时机制
Moher College - SQL injection vulnerability test (error reporting and blind note)
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
memcached基础5
目前哪个证券公司炒股开户是最好最安全的?
直播回顾 | 子芽&CCF TF:云原生场景下软件供应链风险治理技术浅谈
ESP32-添加多目录的自定义组件
可视化介绍 Matplotlib 和 Plotnine
LeetCode 142. 环形链表 II
Concepts de base de données Oracle