当前位置:网站首页>Kept to implement redis autofailover (redisha) 13
Kept to implement redis autofailover (redisha) 13
2022-06-27 01:01:00 【franket】
keepalived.conf
keepalived To configure
[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#
边栏推荐
- Account management, database building and four engines + cases of MySQL
- IIS deploy static web site and FTP service
- Pet hospital management system based on SSMP
- ESP32实验-自建web服务器配网02
- How to control the quality of HD slip ring in the production process
- Oracle 數據庫基本知識概念
- 2022年地理信息系统与遥感专业就业前景与升学高校排名选择
- USB协议中HID设备描述符以及键盘按键值对应编码表
- The most difficult 618 in history, TCL won the first place in both jd.com and tmall.com shares in the TV industry
- 30《MySQL 教程》MySQL 存储引擎概述
猜你喜欢

How to use ch423? Cheap domestic IO expansion chip

MATLAB data type - character type

ESP32-添加多目录的自定义组件

USB协议中HID设备描述符以及键盘按键值对应编码表

Gaussian and Summary Stats

3-wire SPI screen driving mode

About Random Numbers

BootstrapBlazor + FreeSql实战 Chart 图表使用(2)

Skills needing attention in selection and purchase of slip ring

Timing mechanism of LwIP
随机推荐
memcached基础5
用代码生成流程图,Markdown的使用方法
memcached基础3
3线spi屏幕驱动方式
JSON解析,ESP32轻松获取时间气温和天气
Pet hospital management system based on SSMP
memcached基础1
Implementation of ARP module in LwIP
Timing mechanism of LwIP
Law of Large Numbers
接口测试框架实战(一) | Requests 与接口请求构造
Review the old and know the new -- constant renewal at normal temperature
Account management, database building and four engines + cases of MySQL
Is it safe for CITIC Securities Commission to open an online account and speculate in stocks
05 | 規範設計(下):commit 信息風格迥异、難以閱讀,如何規範?
memcached基础6
Keepalived 实现 Redis AutoFailover (RedisHA)14
buuctf-pwn write-ups (6)
Reading graph augmentations to learn graph representations (lg2ar)
Concepts de base de données Oracle