[DOCS-1620] Document heartbeatTimeoutSecs Created: 18/Jun/13  Updated: 20/Jul/13  Resolved: 11/Jul/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:
Days since reply: 10 years, 35 weeks, 1 day ago

 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
        }
}


Generated at Thu Feb 08 07:41:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.