exit(1);
// hb should bind to same ip as cluster_addr (if specified)
- entity_addr_t hb_addr = g_conf->cluster_addr;
- if (!hb_addr.is_blank_ip())
+ entity_addr_t hb_addr = g_conf->osd_heartbeat_addr;
+ if (hb_addr.is_blank_ip()) {
+ hb_addr = g_conf->cluster_addr;
hb_addr.set_port(0);
+ }
r = messenger_hbserver->bind(hb_addr);
if (r < 0)
exit(1);
OPTION(osd_command_thread_timeout, OPT_INT, 10*60)
OPTION(osd_age, OPT_FLOAT, .8)
OPTION(osd_age_time, OPT_INT, 0)
+OPTION(osd_heartbeat_addr, OPT_ADDR, entity_addr_t())
OPTION(osd_heartbeat_interval, OPT_INT, 6) // (seconds) how often we ping peers
OPTION(osd_heartbeat_grace, OPT_INT, 20) // (seconds) how long before we decide a peer has failed
OPTION(osd_mon_heartbeat_interval, OPT_INT, 30) // (seconds) how often to ping monitor if no peers