Go to the documentation of this file.
27 #ifndef R2CLUSTER_HEARTBEAT_H
28 #define R2CLUSTER_HEARTBEAT_H
30 #define R2HB_REGION_TIMEOUT_MS 2000
32 #define R2HB_MAX_REGION_NAME_LEN 32
35 #define R2HB_LIVE_THRESHOLD 2
38 #define R2HB_DEFAULT_DEAD_THRESHOLD 31
40 #define R2HB_MIN_DEAD_THRESHOLD 2
41 #define R2HB_MAX_WRITE_TIMEOUT_MS \
42 (R2HB_REGION_TIMEOUT_MS * (r2hb_dead_threshold - 1))
44 #define R2HB_CB_MAGIC 0x51d1e4ec