套接字异常导致副本集中的切换

时间:2018-09-05 07:31:01

标签: mongodb mongodb-query mongodb-.net-driver

我的集群是社区版本3.6,在我的集群中,我面临着副本集成员之间的切换。从小学到中学,从中学到中学。

下面显示了有关套接字已删除问题日志的帮助

主日志变成了次要日志

2018-09-02T17:28:33.593+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Socket recv() timeout  x.x.x.204:27018
2018-09-02T17:28:33.601+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] SocketException: remote: (NONE):0 error: SocketException socket exception [RECV_TIMEOUT] server [x.x.x.204:27018]
2018-09-02T17:28:33.603+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Detected bad connection created at 1534748836340312 microSec, clearing pool for mongodb9.co.in:27018 of 0 connections
2018-09-02T17:28:33.603+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Dropping all pooled connections to mongodb9.co.in:27018(with timeout of 5 seconds)
2018-09-02T17:28:33.603+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Ending connection to host mongodb9.co.in:27018(with timeout of 5 seconds) due to bad connection status; 0 connections to that host remain open
2018-09-02T17:28:33.605+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Marking host mongodb9:27018 as failed :: caused by :: HostUnreachable: network error while attempting to run command 'ismaster' on host mongodb9.co.in:27018'

同时看下面的

(mtools) [tushar@NDL4176 mongologs_20180902]$ mloginfo mongodb9.log --rsstate
     source: mongodb9
       host: unknown
      start: 2018 Sep 02 17:28:02.354
        end: 2018 Sep 02 17:28:59.135
date format: iso8601-local
     length: 714
     binary: unknown
    version: >= 3.0 (iso8601 format, level, component)
    storage: unknown

RSSTATE
date               host                              state/message
()
Sep 02 17:28:36    mongodb6.co.in:27018      RS_DOWN
Sep 02 17:28:36    lomongodb3.co.in:27018    RS_DOWN
Sep 02 17:28:36    lomongodb3.co.in:27018    SECONDARY
Sep 02 17:28:36    mongodb6.co.in:27018      PRIMARY

(mtools) [tushar@NDL4176 mongologs_20180902]$ mloginfo mongodb6 --rsstate
     source: mongodb6
       host: unknown
      start: 2018 Sep 02 17:00:03.071
        end: 2018 Sep 02 17:59:52.524
date format: iso8601-local
     length: 18154
     binary: unknown
    version: >= 3.0 (iso8601 format, level, component)
    storage: unknown

RSSTATE
date               host                            state/message
()
Sep 02 17:28:26    mongodb9.co.in:27018    RS_DOWN
Sep 02 17:28:37    mongodb9.co.in:27018    SECONDARY

在上面的日志中,我发现relicaset的所有三个成员均未达到或无法ping通,这是网络问题。

或者DBA端是否有任何问题,请对此进行帮助。

0 个答案:

没有答案