当前位置:网站首页>Keepalived 实现 Redis AutoFailover (RedisHA)16
Keepalived 实现 Redis AutoFailover (RedisHA)16
2022-06-27 00:24:00 【franket】
redis-a 是slave
[email protected] keepalived# redis-cli info replication
Replication
role:slave
master_host:redis-b
master_port:6379
master_link_status:up
master_last_io_seconds_ago:4
master_sync_in_progress:0
slave_repl_offset:8093
slave_priority:100
slave_read_only:1
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
[email protected] keepalived#
模拟故障发生
[email protected] keepalived# redis-cli shutdown
[email protected] keepalived# redis-cli info replication
Could not connect to Redis at 127.0.0.1:6379: Connection refused
[email protected] keepalived#
发生自动切换
redis-a 的日志中产生了数据
2015-09-25:00:53:36|25366|state:master read change to master
2015-09-25:00:53:36|25366|state:master wait 10 sec for data sync from old master
2015-09-25:00:53:46|25366|state:master data rsync from old mater ok...
2015-09-25:00:53:46|25366|state:master Run slaveof no one,close master/slave
OK
2015-09-25:00:53:46|25366|state:master wait other slave connect....
边栏推荐
- Flink practical problems (VII): no watermark (watermarks are only available eventtime is used)
- Oracle 数据库基本知识概念
- Central Limit Theorem
- Solve the problem that stc8g1k08 program cannot run and port configuration
- Law of Large Numbers
- Simulation of delta variant strain of novel coronavirus (mindsponge application)
- When transformer encounters partial differential equation solution
- Pet hospital management system based on SSMP
- Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
- Esp32 experiment - self built web server distribution network 02
猜你喜欢

30《MySQL 教程》MySQL 存储引擎概述

Generate flow chart with code, and how to use markdown

In depth understanding of UDP in the transport layer and the use of UDP in sockets

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

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

Live review | Ziya &ccf TF: Discussion on software supply chain risk management technology under cloud native scenario

07 | workflow design: how to design a reasonable multi person development mode?

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

【Vscode】预览md文件

一键加速索尼相机SD卡文件的复制操作,文件操作批处理教程
随机推荐
Esp32 add multi directory custom component
buuctf-pwn write-ups (6)
BootstrapBlazor + FreeSql实战 Chart 图表使用(2)
Com. Faster XML. Jackson. DataBind. Exc.mismatchedinputexception: tableau ou chaîne attendu. At [Source: X
The [MySQL] time field is set to the current time by default
Generate flow chart with code, and how to use markdown
Reading graph augmentations to learn graph representations (lg2ar)
XML learning notes
史上最难618,TCL夺得电视行业京东和天猫份额双第一
C#程序结构预览最基础入门
【Mysql】时间字段默认设置为当前时间
find_ Detailed use guide of CIRC
Moher College -x-forwarded-for injection vulnerability practice
Xiaobai looks at MySQL -- installing MySQL in Windows Environment
Statistical Hypothesis Testing
自定义JSP[if,foreach,数据,select]标签
2022健康博览会,山东养生保健展会,产后健康、睡眠健康展
数据库面试题+sql语句解析
2022年地理信息系统与遥感专业就业前景与升学高校排名选择
解决STC8G1K08程序不能运行的问题和端口配置