目录
摘要:
从源码分析节点故障检测和主从转移
版本: redis-5.0.9
代码地址: https://download.redis.io/releases/redis-5.0.9.tar.gz
故障检测,从PFAIL切换到FAIL, 然后发广播
// 检测PFail, 注意检测时候不判断master和slave
/* Check only if we have an active ping for this instance. */
if (node->ping_sent == 0) continue;
/* Compute the delay of the PONG. Note that if we already received
* the PONG, then node->ping_sent i