zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

2021-10-14 redis-cluster的cluster心跳中的处理

Redis 处理 10 2021 14 cluster 心跳
2023-09-27 14:25:42 时间

摘要:

redis的cluster集群在心跳中处理核心事情, 本文记录下主要做的处理.

脑图:

代码: 

/* -----------------------------------------------------------------------------
 * CLUSTER cron job
 * -------------------------------------------------------------------------- */

/* This is executed 10 times every second */
void clusterCron(void) {
    dictIterator *di;
    dictEntry *de;
    int update_state =