Skip to content

Commit

Permalink
更新嵌入图片尝试
Browse files Browse the repository at this point in the history
  • Loading branch information
LingLambda committed Nov 29, 2024
1 parent ee3b572 commit ef545f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-11-27-redis简略概述.md
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ AOF:Append Of File:存储操作的指令
哨兵会顶级的检测整个redis集群的实例是否在线,当某个哨兵A检测到主从服务器宕机的时候,并不会立马对整个集群进行failover(故障转移),仅仅是哨兵主观的认为master宕机,这种情况被称为主观下线(sdown)。当后续其他哨兵也检测到master宕机后,也会认为是主观下线。但当主观下线达到一定数量时,整个哨兵体系就会认为master已经宕机,这就是客观下线(odown)。此时哨兵内部就会进行投票选择哨兵首领,然后由哨兵首领进行failover。从slave中选择新的master,并给所有的slave发送指令,让所有的slave执行slaveof <新master ip> <新master port>
![哨兵集群模式(sentinel cluster mode)]("../images/sentinel-cluster-mode.png")
![哨兵集群模式(sentinel cluster mode)]("./images/sentinel-cluster-mode.png")
### 3. 哨兵的配置文件
Expand Down

0 comments on commit ef545f8

Please sign in to comment.