/
rs.printSlaveReplicationInfo.txt
43 lines (32 loc) · 1.12 KB
/
rs.printSlaveReplicationInfo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
==============================
rs.printSlaveReplicationInfo()
==============================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
Definition
----------
.. method:: rs.printSlaveReplicationInfo()
Returns a formatted report of the status of a :term:`replica set`
from the perspective of the :term:`secondary` member of the set. The
output is identical to that of
:method:`db.printSlaveReplicationInfo()`.
Output
------
The following is example output from the
:method:`rs.printSlaveReplicationInfo()` method issued on a replica set
with two secondary members:
.. code-block:: javascript
source: m1.example.net:27017
syncedTo: Thu Apr 10 2014 10:27:47 GMT-0400 (EDT)
0 secs (0 hrs) behind the primary
source: m2.example.net:27017
syncedTo: Thu Apr 10 2014 10:27:47 GMT-0400 (EDT)
0 secs (0 hrs) behind the primary
A :ref:`delayed member <replica-set-delayed-members>` may show as ``0``
seconds behind the primary when the inactivity period on the primary is
greater than the :rsconf:`members[n].slaveDelay`
value.