Advertisement
Guest User

Untitled

a guest
Apr 10th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. gregf@kai:~/ceph/src [master]$ git diff HEAD
  2. diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc
  3. index 6dc6c6d..f74d910 100644
  4. --- a/src/ceph_osd.cc
  5. +++ b/src/ceph_osd.cc
  6. @@ -370,9 +370,11 @@ int main(int argc, const char **argv)
  7. exit(1);
  8.  
  9. // hb should bind to same ip as cluster_addr (if specified)
  10. - entity_addr_t hb_addr = g_conf->cluster_addr;
  11. - if (!hb_addr.is_blank_ip())
  12. + entity_addr_t hb_addr = g_conf->osd_heartbeat_server_addr;
  13. + if (hb_addr.is_blank_ip()) {
  14. + hb_addr = g_conf->cluster_addr;
  15. hb_addr.set_port(0);
  16. + }
  17. r = messenger_hbserver->bind(hb_addr);
  18. if (r < 0)
  19. exit(1);
  20. diff --git a/src/common/config_opts.h b/src/common/config_opts.h
  21. index 216feb6..33f5f97 100644
  22. --- a/src/common/config_opts.h
  23. +++ b/src/common/config_opts.h
  24. @@ -283,6 +283,7 @@ OPTION(osd_remove_thread_timeout, OPT_INT, 60*60)
  25. OPTION(osd_command_thread_timeout, OPT_INT, 10*60)
  26. OPTION(osd_age, OPT_FLOAT, .8)
  27. OPTION(osd_age_time, OPT_INT, 0)
  28. +OPTION(osd_heartbeat_server_addr, OPT_ADDR, entity_addr_t())
  29. OPTION(osd_heartbeat_interval, OPT_INT, 6) // (seconds) how often we ping peers
  30. OPTION(osd_heartbeat_grace, OPT_INT, 20) // (seconds) how long before we decide a peer has failed
  31. OPTION(osd_mon_heartbeat_interval, OPT_INT, 30) // (seconds) how often to ping monitor if no peers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement