File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,19 @@ A :ref:`delayed member <replica-set-delayed-members>` may show as ``0``
4141seconds behind the primary when the inactivity period on the primary is
4242greater than the :rsconf:`members[n].slaveDelay`
4343value.
44+
45+ A member may show a negative time value behind the primary when
46+ :method:`rs.printSlaveReplicationInfo()` is called. This behavior is
47+ expected if the method is called after a secondary replicates a write
48+ following a period of inactivity, but before it has received a
49+ heartbeat from the primary with its latest optime.
50+
51+ .. note::
52+
53+ The lag reported by secondaries may not be representative of cluster
54+ health. Negative values do not indicate that the secondary is ahead
55+ of the primary.
56+
57+ For the most up-to-date information on your replica set, it is
58+ generally advisable to run
59+ :method:`rs.printSlaveReplicationInfo()` on the primary.
You can’t perform that action at this time.
0 commit comments