您的当前位置:首页 >应用开发 >MongoDB一次节点宕机引发的思考 正文

MongoDB一次节点宕机引发的思考

时间:2025-11-04 16:52:24 来源:网络整理编辑:应用开发

核心提示

复制2019-05-06T16:51:11.766+0800IREPL[ReplicationExecutor]Startinganelection,sinceweveseennoPRIMARYint

MongoDB一次节点宕机引发的思考
复制2019-05-06T16:51:11.766+0800 I REPL [ReplicationExecutor] Starting an election,节点 since weve seen noPRIMARYin the past 10000ms  2019-05-06T16:51:11.766+0800 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected  2019-05-06T16:51:11.766+0800 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to 172.30.129.78:30071  2019-05-06T16:51:11.767+0800 I REPL [ReplicationExecutor] VoteRequester(term 3 dry run) received a yes vote from 172.30.129.7:30071; response message: { term: 3, voteGranted: true, reason: "", ok: 1.0 }  2019-05-06T16:51:11.767+0800 I REPL [ReplicationExecutor] dry election run succeeded, running for election  2019-05-06T16:51:11.768+0800 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to 172.30.129.78:30071  2019-05-06T16:51:11.771+0800 I REPL [ReplicationExecutor] VoteRequester(term 4) received a yes vote from 172.30.129.7:30071; response message: { term: 4, voteGranted: true, reason: "", ok: 1.0 }  2019-05-06T16:51:11.771+0800 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 4  2019-05-06T16:51:11.771+0800 I REPL [ReplicationExecutor] transition toPRIMARY 2019-05-06T16:51:11.771+0800 I REPL [ReplicationExecutor] Entering primary catch-up mode.  2019-05-06T16:51:11.771+0800 I ASIO [NetworkInterfaceASIO-Replication-0] Ending connectionto host 172.30.129.78:30071 due to bad connection status; 2 connections to that host remain open 2019-05-06T16:51:11.771+0800 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to 172.30.129.78:30071  2019-05-06T16:51:13.350+0800 I REPL [ReplicationExecutor] Error in heartbeat request to 172.30.129.78:30071; ExceededTimeLimit: Couldnt get a connection within the time limit  1.2.3.4.5.6.7.8.9.10.11.12.13.