当前位置:网站首页>Keepalived 实现 Redis AutoFailover (RedisHA)13
Keepalived 实现 Redis AutoFailover (RedisHA)13
2022-06-27 00:24:00 【franket】
keepalived.conf
keepalived 配置
[email protected] keepalived# cat /etc/keepalived/keepalived.conf
! Configuration File for keepalived
global_defs {
router_id LVS_redis-a
}
vrrp_script chk_redis {
script "/etc/keepalived/scripts/redis_check.sh" weight -10 interval 2 }
vrrp_instance VI_123 {
state BACKUPinterface eth2virtual_router_id 123priority 138advert_int 3authentication { auth_type PASS auth_pass 1111}track_script { chk_redis }virtual_ipaddress {192.168.100.123} notify_master /etc/keepalived/scripts/redis_master.sh notify_backup /etc/keepalived/scripts/redis_backup.sh notify_fault /etc/keepalived/scripts/redis_fault.sh notify_stop /etc/keepalived/scripts/redis_stop.sh}
[email protected] keepalived#
[email protected] keepalived# cat /etc/keepalived/keepalived.conf
! Configuration File for keepalived
global_defs {
router_id LVS_redis-b
}
vrrp_script chk_redis {
script "/etc/keepalived/scripts/redis_check.sh" weight -10 interval 2 }
vrrp_instance VI_123 {
state BACKUPinterface eth2virtual_router_id 123priority 139advert_int 3authentication { auth_type PASS auth_pass 1111}track_script { chk_redis}virtual_ipaddress {192.168.100.123} notify_master /etc/keepalived/scripts/redis_master.sh notify_backup /etc/keepalived/scripts/redis_backup.sh notify_fault /etc/keepalived/scripts/redis_fault.sh notify_stop /etc/keepalived/scripts/redis_stop.sh}
[email protected] keepalived#
边栏推荐
- ESP32-SOLO开发教程,解决CONFIG_FREERTOS_UNICORE问题
- memcached基础1
- XML learning notes
- 根据文件名批量生成文件夹
- 如何把老式键盘转换成USB键盘并且自己编程?
- Oracle 數據庫基本知識概念
- Pet hospital management system based on SSMP
- Great health industry annual must attend event, 2022 Shandong International Great Health Industry Expo
- 高清滑环生产过程当中的质量如何把控
- How to write test cases and a brief introduction to go unit test tool testify
猜你喜欢

一键加速索尼相机SD卡文件的复制操作,文件操作批处理教程

【Mysql】时间字段默认设置为当前时间

超越锂电池——未来电池的概念

Central Limit Theorem

Solve the problem that stc8g1k08 program cannot run and port configuration

Processing of slice loss in ArcGIS mosaic dataset

ESP32实验-自建web服务器配网02

基于SSMP的宠物医院管理系统

Redis detailed tutorial

Simple and fast digital network (network dolls in the network)
随机推荐
Keepalived 实现 Redis AutoFailover (RedisHA)12
大白话高并发(一)
网络中的网络(套娃)
memcached基础7
用代码生成流程图,Markdown的使用方法
buuctf-pwn write-ups (6)
Flink 实战问题(七):No Watermark(Watermarks are only available EventTime is used)
这10款文案神器帮你速码,做自媒体还担心写不出文案吗?
数据库面试题+sql语句解析
CPU exception handling
根据文件名批量生成文件夹
剑指 Offer 10- II. 青蛙跳台阶问题
Great vernacular with high concurrency (I)
The [MySQL] time field is set to the current time by default
统计无向图中无法互相到达点对数[经典建邻接表+DFS统计 -> 并查集优化][并查集手册/写的详细]
超越锂电池——未来电池的概念
How to write test cases and a brief introduction to go unit test tool testify
【Vscode】预览md文件
Is there anyone who doesn't know the three cores of concurrent programming?
xml学习笔记