当前位置:网站首页>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#
边栏推荐
- From bitmap to bloom filter, C # implementation
- xml学习笔记
- The [MySQL] time field is set to the current time by default
- XSS攻击笔记(上)
- Beyond lithium battery -- the concept of battery in the future
- 30《MySQL 教程》MySQL 存储引擎概述
- Simple and fast digital network (network dolls in the network)
- buuctf-pwn write-ups (6)
- Esp32 add multi directory custom component
- About Random Numbers
猜你喜欢

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

Employment prospect of GIS and remote sensing specialty and ranking selection of universities in 2022

气液滑环与其他滑环的工作原理有什么区别

Law of Large Numbers

Bootstrapblazor + FreeSQL actual combat chart usage (2)

Network in network (dolls)

LeetCode 142. 环形链表 II

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

Statistical Hypothesis Testing

Live review | Ziya &ccf TF: Discussion on software supply chain risk management technology under cloud native scenario
随机推荐
BootstrapBlazor + FreeSql实战 Chart 图表使用(2)
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
Is it safe for CITIC Securities Commission to open an online account and speculate in stocks
Unable to create a folder to save the sketch: MKDIR sketch
Implementation of ARP module in LwIP
About Random Numbers
Statistical Hypothesis Testing
2022年地理信息系统与遥感专业就业前景与升学高校排名选择
自定义类加载器对类加密解密
JS library for number formatting
find_circ详细使用指南
Interface test framework practice (I) | requests and interface request construction
可视化介绍 Matplotlib 和 Plotnine
memcached基础3
Lambda表达式
记录一次换行符引起的bug
玩转OLED,U8g2动画,增长数字和随机三角形等
网上开通证券账户安全吗 手机炒股靠谱吗
小白看MySQL--windows环境安装MySQL
2022年地理信息系统与遥感专业就业前景与升学高校排名选择