これは現在、関数rs.reconfig()
を使用して可能です。 バージョン3.0以降。またはコマンドreplSetGetConfig.settings.heartbeatTimeoutSecs。
https://docs.mongodb.org/ v3.0 / reference / method / rs.reconfig /#rs.reconfig
https://docs.mongodb.org/v3。 0 / reference / command / replSetGetConfig /#dbcmd.replSetGetConfig
あなたはhttpinterfaceで見ることができます:
mongohost:mongoport / replSetGetConfig?text =1
設定の下で、ハートビートのタイムアウトは秒単位でどのくらいの時間ですか
"settings" : { "chainingAllowed" : true,
"heartbeatTimeoutSecs" : 10,
"getLastErrorModes" : {},
"getLastErrorDefaults" : { "w" : 1,
"wtimeout" : 0 } } }