λ node rs_async.js mongodb 6.0.16 nodejs v22.14.0 driver 6.13.0 os NAME="Ubuntu", VERSION="20.04.4 LTS (Focal Fossa)" 2025-02-13T10:07:01.147Z iterations: 0, read documents: 0, avg duration: 0 ms, max duration: 0 ms, 0 samples 2025-02-13T10:07:06.149Z iterations: 441, read documents: 441, avg duration: 10 ms, max duration: 51 ms, 441 samples 2025-02-13T10:07:11.150Z iterations: 914, read documents: 914, avg duration: 10 ms, max duration: 26 ms, 473 samples { t: '2025-02-13T10:07:11.651Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000b') } { t: '2025-02-13T10:07:11.654Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } 2025-02-13T10:07:16.150Z iterations: 1380, read documents: 1380, avg duration: 10 ms, max duration: 31 ms, 466 samples 2025-02-13T10:07:21.151Z iterations: 1858, read documents: 1858, avg duration: 10 ms, max duration: 21 ms, 478 samples { t: '2025-02-13T10:07:21.659Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000b') } { t: '2025-02-13T10:07:21.665Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } 2025-02-13T10:07:26.151Z iterations: 2323, read documents: 2323, avg duration: 10 ms, max duration: 36 ms, 465 samples 2025-02-13T10:07:31.151Z iterations: 2775, read documents: 2775, avg duration: 10 ms, max duration: 42 ms, 452 samples { t: '2025-02-13T10:07:31.667Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000b') } { t: '2025-02-13T10:07:31.669Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } 2025-02-13T10:07:36.151Z iterations: 3248, read documents: 3248, avg duration: 10 ms, max duration: 23 ms, 473 samples 2025-02-13T10:07:41.152Z iterations: 3715, read documents: 3715, avg duration: 10 ms, max duration: 33 ms, 467 samples { t: '2025-02-13T10:07:41.676Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000b') } { t: '2025-02-13T10:07:41.677Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } 2025-02-13T10:07:46.152Z iterations: 4122, read documents: 4122, avg duration: 11 ms, max duration: 79 ms, 407 samples 2025-02-13T10:07:51.153Z iterations: 4507, read documents: 4507, avg duration: 12 ms, max duration: 36 ms, 385 samples { t: '2025-02-13T10:07:51.678Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } { t: '2025-02-13T10:07:51.686Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000b') } 2025-02-13T10:07:56.154Z iterations: 4964, read documents: 4964, avg duration: 10 ms, max duration: 26 ms, 457 samples 2025-02-13T10:08:01.149Z stepping down ================================================== 2025-02-13T10:08:01.155Z iterations: 5416, read documents: 5416, avg duration: 10 ms, max duration: 26 ms, 452 samples { t: '2025-02-13T10:08:01.161Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000b') } { t: '2025-02-13T10:08:01.166Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 } } { t: '2025-02-13T10:08:01.169Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:01.169Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 } } { t: '2025-02-13T10:08:01.181Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:01.181Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 } } { t: '2025-02-13T10:08:01.182Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:01.182Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000b'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } { t: '2025-02-13T10:08:01.184Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true } { t: '2025-02-13T10:08:01.184Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } 2025-02-13T10:08:06.155Z iterations: 5859, read documents: 5859, avg duration: 10 ms, max duration: 45 ms, 443 samples 2025-02-13T10:08:11.157Z iterations: 6316, read documents: 6316, avg duration: 10 ms, max duration: 35 ms, 457 samples { t: '2025-02-13T10:08:11.183Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:11.190Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true } { t: '2025-02-13T10:08:11.190Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } 2025-02-13T10:08:16.157Z iterations: 6764, read documents: 6764, avg duration: 10 ms, max duration: 28 ms, 448 samples 2025-02-13T10:08:21.158Z iterations: 7216, read documents: 7216, avg duration: 10 ms, max duration: 29 ms, 452 samples { t: '2025-02-13T10:08:21.185Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:21.192Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021' } { t: '2025-02-13T10:08:21.193Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } 2025-02-13T10:08:26.158Z iterations: 7650, read documents: 7650, avg duration: 11 ms, max duration: 40 ms, 434 samples 2025-02-13T10:08:31.158Z iterations: 8108, read documents: 8108, avg duration: 10 ms, max duration: 39 ms, 458 samples { t: '2025-02-13T10:08:31.194Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:31.198Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021' } 2025-02-13T10:08:36.158Z iterations: 8576, read documents: 8576, avg duration: 10 ms, max duration: 24 ms, 468 samples 2025-02-13T10:08:41.158Z iterations: 9033, read documents: 9033, avg duration: 10 ms, max duration: 29 ms, 457 samples { t: '2025-02-13T10:08:41.203Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:41.208Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021' } 2025-02-13T10:08:46.159Z iterations: 9498, read documents: 9498, avg duration: 10 ms, max duration: 34 ms, 465 samples 2025-02-13T10:08:51.159Z iterations: 9943, read documents: 9943, avg duration: 10 ms, max duration: 33 ms, 445 samples { t: '2025-02-13T10:08:51.211Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:08:51.220Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021' } 2025-02-13T10:08:56.159Z iterations: 10345, read documents: 10345, avg duration: 11 ms, max duration: 32 ms, 402 samples 2025-02-13T10:09:01.160Z iterations: 10750, read documents: 10750, avg duration: 11 ms, max duration: 27 ms, 405 samples 2025-02-13T10:09:01.211Z expecting step up ================================================== { t: '2025-02-13T10:09:01.220Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27021', electionId: new ObjectId('7fffffff000000000000000c') } { t: '2025-02-13T10:09:01.228Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021' } 2025-02-13T10:09:06.161Z iterations: 11190, read documents: 11190, avg duration: 10 ms, max duration: 25 ms, 440 samples { t: '2025-02-13T10:09:11.029Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true } { t: '2025-02-13T10:09:11.029Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } { t: '2025-02-13T10:09:11.032Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27021' } { t: '2025-02-13T10:09:11.033Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000d') } { t: '2025-02-13T10:09:11.033Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } { t: '2025-02-13T10:09:11.033Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000d') } { t: '2025-02-13T10:09:11.033Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } { t: '2025-02-13T10:09:11.035Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true } { t: '2025-02-13T10:09:11.035Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } 2025-02-13T10:09:11.162Z iterations: 11629, read documents: 11629, avg duration: 10 ms, max duration: 28 ms, 439 samples 2025-02-13T10:09:16.170Z iterations: 11629, read documents: 11629, avg duration: 0 ms, max duration: 0 ms, 0 samples { t: '2025-02-13T10:09:21.037Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } { t: '2025-02-13T10:09:21.037Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 } } { t: '2025-02-13T10:09:21.037Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000d') } { t: '2025-02-13T10:09:21.037Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000c'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff000000000000000d'), maxSetVersion: 1 } } 2025-02-13T10:09:21.171Z iterations: 11641, read documents: 11641, avg duration: 843 ms, max duration: 10012 ms, 12 samples 2025-02-13T10:09:26.171Z iterations: 12156, read documents: 12156, avg duration: 9 ms, max duration: 22 ms, 515 samples { t: '2025-02-13T10:09:31.038Z', me: '127.0.0.1:27021', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: false, secondary: true, primary: '127.0.0.1:27020' } { t: '2025-02-13T10:09:31.042Z', me: '127.0.0.1:27020', hosts: [ '127.0.0.1:27020', '127.0.0.1:27021' ], setVersion: 1, isWritablePrimary: true, secondary: false, primary: '127.0.0.1:27020', electionId: new ObjectId('7fffffff000000000000000d') } 2025-02-13T10:09:31.170Z iterations: 12646, read documents: 12646, avg duration: 9 ms, max duration: 27 ms, 490 samples 2025-02-13T10:09:36.171Z iterations: 13131, read documents: 13131, avg duration: 9 ms, max duration: 23 ms, 485 samples