λ node rs_async.js mongodb 6.0.16 nodejs v20.12.1 driver 6.13.0 os NAME="Ubuntu", VERSION="20.04.4 LTS (Focal Fossa)" 2025-02-13T07:53:29.767Z iterations: 0, read documents: 0, avg duration: 0 ms, max duration: 0 ms, 0 samples 2025-02-13T07:53:34.769Z iterations: 338, read documents: 338, avg duration: 14 ms, max duration: 59 ms, 338 samples 2025-02-13T07:53:39.769Z iterations: 708, read documents: 708, avg duration: 12 ms, max duration: 27 ms, 370 samples { t: '2025-02-13T07:53:40.270Z', 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('7fffffff0000000000000003') } { t: '2025-02-13T07:53:40.271Z', 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-13T07:53:44.770Z iterations: 1074, read documents: 1074, avg duration: 13 ms, max duration: 26 ms, 366 samples 2025-02-13T07:53:49.770Z iterations: 1436, read documents: 1436, avg duration: 13 ms, max duration: 25 ms, 362 samples { t: '2025-02-13T07:53:50.271Z', 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-13T07:53:50.284Z', 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('7fffffff0000000000000003') } 2025-02-13T07:53:54.770Z iterations: 1796, read documents: 1796, avg duration: 13 ms, max duration: 25 ms, 360 samples 2025-02-13T07:53:59.771Z iterations: 2155, read documents: 2155, avg duration: 13 ms, max duration: 29 ms, 359 samples { t: '2025-02-13T07:54:00.287Z', 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-13T07:54:00.288Z', 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('7fffffff0000000000000003') } 2025-02-13T07:54:04.772Z iterations: 2520, read documents: 2520, avg duration: 13 ms, max duration: 26 ms, 365 samples 2025-02-13T07:54:09.773Z iterations: 2886, read documents: 2886, avg duration: 13 ms, max duration: 24 ms, 366 samples { t: '2025-02-13T07:54:10.293Z', 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-13T07:54:10.297Z', 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('7fffffff0000000000000003') } 2025-02-13T07:54:14.776Z iterations: 3256, read documents: 3256, avg duration: 12 ms, max duration: 37 ms, 370 samples 2025-02-13T07:54:19.776Z iterations: 3627, read documents: 3627, avg duration: 12 ms, max duration: 27 ms, 371 samples { t: '2025-02-13T07:54:20.292Z', 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-13T07:54:20.309Z', 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('7fffffff0000000000000003') } 2025-02-13T07:54:24.777Z iterations: 3996, read documents: 3996, avg duration: 13 ms, max duration: 27 ms, 369 samples 2025-02-13T07:54:29.771Z stepping down ================================================== 2025-02-13T07:54:29.778Z iterations: 4353, read documents: 4353, avg duration: 13 ms, max duration: 28 ms, 357 samples { t: '2025-02-13T07:54:29.793Z', 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('7fffffff0000000000000003') } { t: '2025-02-13T07:54:29.794Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 } } { t: '2025-02-13T07:54:29.812Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:54:29.813Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 } } { t: '2025-02-13T07:54:29.815Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:54:29.815Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 } } { t: '2025-02-13T07:54:29.816Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:54:29.816Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000003'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } { t: '2025-02-13T07:54:29.829Z', 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-13T07:54:29.829Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } 2025-02-13T07:54:34.778Z iterations: 4703, read documents: 4703, avg duration: 13 ms, max duration: 66 ms, 350 samples 2025-02-13T07:54:39.780Z iterations: 5066, read documents: 5066, avg duration: 13 ms, max duration: 26 ms, 363 samples { t: '2025-02-13T07:54:39.823Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:54:39.829Z', 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-13T07:54:39.829Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } 2025-02-13T07:54:44.781Z iterations: 5419, read documents: 5419, avg duration: 13 ms, max duration: 26 ms, 353 samples 2025-02-13T07:54:49.781Z iterations: 5769, read documents: 5769, avg duration: 13 ms, max duration: 29 ms, 350 samples { t: '2025-02-13T07:54:49.823Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:54:49.843Z', 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-13T07:54:49.844Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } 2025-02-13T07:54:54.782Z iterations: 6129, read documents: 6129, avg duration: 13 ms, max duration: 27 ms, 360 samples 2025-02-13T07:54:59.782Z iterations: 6493, read documents: 6493, avg duration: 13 ms, max duration: 24 ms, 364 samples { t: '2025-02-13T07:54:59.827Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:54:59.848Z', 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-13T07:55:04.782Z iterations: 6849, read documents: 6849, avg duration: 13 ms, max duration: 23 ms, 356 samples 2025-02-13T07:55:09.783Z iterations: 7207, read documents: 7207, avg duration: 13 ms, max duration: 26 ms, 358 samples { t: '2025-02-13T07:55:09.827Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:55:09.856Z', 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-13T07:55:14.784Z iterations: 7567, read documents: 7567, avg duration: 13 ms, max duration: 25 ms, 360 samples 2025-02-13T07:55:19.785Z iterations: 7926, read documents: 7926, avg duration: 13 ms, max duration: 25 ms, 359 samples { t: '2025-02-13T07:55:19.838Z', 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('7fffffff0000000000000004') } { t: '2025-02-13T07:55:19.868Z', 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-13T07:55:24.785Z iterations: 8278, read documents: 8278, avg duration: 13 ms, max duration: 36 ms, 352 samples 2025-02-13T07:55:29.785Z iterations: 8629, read documents: 8629, avg duration: 13 ms, max duration: 30 ms, 351 samples { t: '2025-02-13T07:55:29.847Z', 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('7fffffff0000000000000004') } 2025-02-13T07:55:29.850Z expecting step up ================================================== { t: '2025-02-13T07:55:29.874Z', 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-13T07:55:34.787Z iterations: 8986, read documents: 8986, avg duration: 13 ms, max duration: 33 ms, 357 samples { t: '2025-02-13T07:55:39.021Z', 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-13T07:55:39.022Z', prev: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } { t: '2025-02-13T07:55:39.024Z', 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-13T07:55:39.025Z', 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('7fffffff0000000000000005') } { t: '2025-02-13T07:55:39.026Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } { t: '2025-02-13T07:55:39.027Z', 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-13T07:55:39.027Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } 2025-02-13T07:55:39.790Z iterations: 9284, read documents: 9284, avg duration: 13 ms, max duration: 30 ms, 298 samples 2025-02-13T07:55:44.803Z iterations: 9284, read documents: 9284, avg duration: 0 ms, max duration: 0 ms, 0 samples { t: '2025-02-13T07:55:49.035Z', 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('7fffffff0000000000000005') } { t: '2025-02-13T07:55:49.035Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } { t: '2025-02-13T07:55:49.035Z', 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-13T07:55:49.036Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 } } 2025-02-13T07:55:49.804Z iterations: 9284, read documents: 9284, avg duration: 0 ms, max duration: 0 ms, 0 samples 2025-02-13T07:55:54.813Z iterations: 9284, read documents: 9284, avg duration: 0 ms, max duration: 0 ms, 0 samples { t: '2025-02-13T07:55:59.039Z', 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-13T07:55:59.040Z', 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('7fffffff0000000000000005') } { t: '2025-02-13T07:55:59.040Z', prev: { type: 'ReplicaSetNoPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000004'), maxSetVersion: 1 }, next: { type: 'ReplicaSetWithPrimary', stale: false, maxElectionId: new ObjectId('7fffffff0000000000000005'), maxSetVersion: 1 } } 2025-02-13T07:55:59.814Z iterations: 9336, read documents: 9336, avg duration: 398 ms, max duration: 20009 ms, 52 samples 2025-02-13T07:56:04.815Z iterations: 9685, read documents: 9685, avg duration: 13 ms, max duration: 43 ms, 349 samples { t: '2025-02-13T07:56:09.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('7fffffff0000000000000005') } { t: '2025-02-13T07:56:09.051Z', 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-13T07:56:09.814Z iterations: 10047, read documents: 10047, avg duration: 13 ms, max duration: 25 ms, 362 samples