当前位置:网站首页>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....
边栏推荐
- 世界很大,有人把二维码纹在脖子上
- 滑环选型选购时需要注意的技巧
- memcached基础5
- Com. Faster XML. Jackson. DataBind. Exc.mismatchedinputexception: tableau ou chaîne attendu. At [Source: X
- MATLAB data type - character type
- memcached基础3
- Moher College -x-forwarded-for injection vulnerability practice
- 网上开通证券账户安全吗 手机炒股靠谱吗
- Oracle database basics concepts
- JSON parsing, esp32 easy access to time, temperature and weather
猜你喜欢

CPU exception handling

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

Review the old and know the new -- constant renewal at normal temperature

Is there anyone who doesn't know the three cores of concurrent programming?

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

CH423要如何使用,便宜的国产IO扩展芯片

Operating instructions and Q & A of cec-i China learning machine

Solve the problem that only one line of text is displayed or not displayed in u8glib

基于SSMP的宠物医院管理系统

Simulation of delta variant strain of novel coronavirus (mindsponge application)
随机推荐
XML learning notes
These 10 copywriting artifacts help you speed up the code. Are you still worried that you can't write a copywriting for US media?
Xiaobai looks at MySQL -- installing MySQL in Windows Environment
数据库面试题+sql语句解析
Timing mechanism of LwIP
Hid device descriptor and keyboard key value corresponding coding table in USB protocol
Lambda expression
Concepts de base de données Oracle
When transformer encounters partial differential equation solution
自定义MVC(导成jar包)+与三层架构的区别+反射+面试题
Interface test framework practice (I) | requests and interface request construction
大健康行业年度必参盛会,2022山东国际大健康产业博览会
Great vernacular with high concurrency (I)
Redis detailed tutorial
redis详细教程
In depth understanding of UDP in the transport layer and the use of UDP in sockets
MySQL之账号管理、建库以及四大引擎+案例
Other service registration and discovery
07 | workflow design: how to design a reasonable multi person development mode?
数字格式化的 js 库