当前位置:网站首页>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#
边栏推荐
- find_ Detailed use guide of CIRC
- memcached基础1
- Esp32 experiment - self built web server distribution network 02
- 数据库面试题+sql语句解析
- 玩转OLED,U8g2动画,增长数字和随机三角形等
- Simple and fast digital network (network dolls in the network)
- Xiaobai looks at MySQL -- installing MySQL in Windows Environment
- Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
- 其他服务注册与发现
- Lambda表达式
猜你喜欢

Moher College - SQL injection vulnerability test (error reporting and blind note)

光谱共焦如何测量玻璃基板厚度

C#程序结构预览最基础入门

Gaussian and Summary Stats

Lwip之定时机制

Custom MVC (imported into jar package) + difference from three-tier architecture + reflection + interview questions

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

Redis detailed tutorial

Oracle database basics concepts

基于SSMP的宠物医院管理系统
随机推荐
How to control the quality of HD slip ring in the production process
Oracle database basics concepts
记录一次换行符引起的bug
Keepalived 实现 Redis AutoFailover (RedisHA)15
These 10 copywriting artifacts help you speed up the code. Are you still worried that you can't write a copywriting for US media?
ArcGIS 镶嵌数据集切片丢失问题处理
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
自定义MVC(导成jar包)+与三层架构的区别+反射+面试题
Review the old and know the new -- constant renewal at normal temperature
Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
05 | 规范设计(下):commit 信息风格迥异、难以阅读,如何规范?
Solve the problem that stc8g1k08 program cannot run and port configuration
大健康行业年度必参盛会,2022山东国际大健康产业博览会
如何把老式键盘转换成USB键盘并且自己编程?
Is there anyone who doesn't know the three cores of concurrent programming?
【Mysql】时间字段默认设置为当前时间
BootstrapBlazor + FreeSql实战 Chart 图表使用(2)
At present, which securities company is the best and safest to open an account for stock speculation?
小白看MySQL--windows环境安装MySQL
[vscade] preview MD file