Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1620

Document heartbeatTimeoutSecs

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      configurable as:

      myrs:PRIMARY> config = rs.config()
      {
              "_id" : "myrs",
              "version" : 14,
              "members" : [
                      {
                              "_id" : 0,
                              "host" : "hingo-sputnik:27001"
                      },
                      {
                              "_id" : 1,
                              "host" : "hingo-sputnik:27002"
                      },
                      {
                              "_id" : 2,
                              "host" : "hingo-sputnik:27003"
                      }
              ]
      }
      myrs:PRIMARY> config["settings"] = { heartbeatTimeoutSecs : 2 }
      { "heartbeatTimeoutSecs" : 2 }
      myrs:PRIMARY> config
      {
              "_id" : "myrs",
              "version" : 14,
              "members" : [
                      {
                              "_id" : 0,
                              "host" : "hingo-sputnik:27001"
                      },
                      {
                              "_id" : 1,
                              "host" : "hingo-sputnik:27002"
                      },
                      {
                              "_id" : 2,
                              "host" : "hingo-sputnik:27003"
                      }
              ],
              "settings" : {
                      "heartbeatTimeoutSecs" : 2
              }
      }
      myrs:PRIMARY> rs.reconfig(config)
      { "ok" : 1 }
      // Just to verify it sticks:
      myrs:PRIMARY> rs.config()
      {
              "_id" : "myrs",
              "version" : 15,
              "members" : [
                      {
                              "_id" : 0,
                              "host" : "hingo-sputnik:27001"
                      },
                      {
                              "_id" : 1,
                              "host" : "hingo-sputnik:27002"
                      },
                      {
                              "_id" : 2,
                              "host" : "hingo-sputnik:27003"
                      }
              ],
              "settings" : {
                      "heartbeatTimeoutSecs" : 2
              }
      }

      Attachments

        Activity

          People

            scotthernandez Scott Hernandez (Inactive)
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 35 weeks, 1 day ago