当前位置:网站首页>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#
边栏推荐
- 大白话高并发(一)
- Keepalived 实现 Redis AutoFailover (RedisHA)16
- 解决unable to create a folder to save the sketch: mkdir sketch
- Lwip之定时机制
- Keepalived 实现 Redis AutoFailover (RedisHA)17
- Moher College -x-forwarded-for injection vulnerability practice
- 自定义MVC(导成jar包)+与三层架构的区别+反射+面试题
- 一键加速索尼相机SD卡文件的复制操作,文件操作批处理教程
- 统一结果集的封装
- 网络中的网络(套娃)
猜你喜欢

Hid device descriptor and keyboard key value corresponding coding table in USB protocol

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

2022年地理信息系统与遥感专业就业前景与升学高校排名选择

根据文件名批量生成文件夹

LeetCode 142. Circular linked list II

CEC-I 中华学习机使用说明与问答

buuctf-pwn write-ups (6)

解决unable to create a folder to save the sketch: mkdir sketch

自定义类加载器对类加密解密

BootstrapBlazor + FreeSql实战 Chart 图表使用(2)
随机推荐
统计无向图中无法互相到达点对数[经典建邻接表+DFS统计 -> 并查集优化][并查集手册/写的详细]
3线spi屏幕驱动方式
Play OLED, u8g2 animation, increasing numbers, random triangles, etc
Esp32 experiment - self built web server distribution network 02
Solve the problem that only one line of text is displayed or not displayed in u8glib
网络中的网络(套娃)
可视化介绍 Matplotlib 和 Plotnine
3-wire SPI screen driving mode
Timing mechanism of LwIP
How to measure the thickness of glass substrate by spectral confocal
xml学习笔记
Great vernacular with high concurrency (I)
USB协议中HID设备描述符以及键盘按键值对应编码表
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
Flink practical problems (VII): no watermark (watermarks are only available eventtime is used)
2022 Health Expo, Shandong health care exhibition, postpartum health and sleep health exhibition
Solve the problem that stc8g1k08 program cannot run and port configuration
JSON解析,ESP32轻松获取时间气温和天气
buuctf-pwn write-ups (6)
How to use ch423? Cheap domestic IO expansion chip