当前位置:网站首页>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#
边栏推荐
猜你喜欢

Generate flow chart with code, and how to use markdown

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

Concepts de base de données Oracle

如何把老式键盘转换成USB键盘并且自己编程?

Other service registration and discovery

ArcGIS 镶嵌数据集切片丢失问题处理

LeetCode 142. 环形链表 II

CPU exception handling
![Custom jsp[if, foreach, data, select] tag](/img/a2/fc75c182d572d86f4466323e31d6c3.png)
Custom jsp[if, foreach, data, select] tag

Bootstrapblazor + FreeSQL actual combat chart usage (2)
随机推荐
Esp32 experiment - self built web server distribution network 02
Lambda expression
接口测试框架实战(一) | Requests 与接口请求构造
Database interview questions +sql statement analysis
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
05 | 規範設計(下):commit 信息風格迥异、難以閱讀,如何規範?
滑环安装有哪些技巧和方法
3-wire SPI screen driving mode
寻找旋转排序数组中的最小值 II[经典抽象二分 + 如何破局左中右三者相等]
记录一次换行符引起的bug
Keepalived 实现 Redis AutoFailover (RedisHA)13
Central Limit Theorem
buuctf-pwn write-ups (6)
At present, which securities company is the best and safest to open an account for stock speculation?
IIS deploy static web site and FTP service
Batch generate folders based on file names
对象的访问机制及其他
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
Processing of slice loss in ArcGIS mosaic dataset
Lwip之定时机制