Skip to content

Commit 2bd955b

Browse files
authored
DOCSP-35753 serverStatus metric stepDown moved to stateTransaction (#5927) (#6038)
* DOCSP-35753-serverStatus-metric-stepDown-moved-to-stateTransaction * DOCSP-35753: Adding stateTransition object for replication stepDown info. Deprecating stepDown metric and linking to new object. * Empty-Commit * DOCSP-35753: Removing references to unsupported previous behavior. Added missing heading for lasteStateTransaction. Modified language per style guide. * DOCSP-35753: Fixing monospace issue. * DOCSP-35753: Typo fix * DOCSP-35753: Small editorial changes per feedback.
1 parent f841b21 commit 2bd955b

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

source/reference/command/serverStatus.txt

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,8 @@ metrics
15511551
reconfig : {
15521552
numAutoReconfigsForRemovalOfNewlyAddedFields : Long("<num>")
15531553
},
1554-
stepDown : {
1554+
stateTransition : {
1555+
lastStateTransition : <string>,
15551556
userOperationsKilled : Long("<num>"),
15561557
userOperationsRunning : Long("<num>")
15571558
},
@@ -2157,26 +2158,52 @@ metrics
21572158

21582159
.. versionadded:: 5.0
21592160

2160-
.. serverstatus:: metrics.repl.stepDown
2161+
.. serverstatus:: metrics.repl.stateTransition
21612162

2162-
Information on user operations that were running when the
2163-
:binary:`~bin.mongod` stepped down.
2163+
Information on user operations when the member undergoes one of the
2164+
following transitions that can stop user operations:
21642165

2165-
.. versionadded:: 4.2
2166+
- The member steps up to become a primary.
21662167

2167-
.. serverstatus:: metrics.repl.stepDown.userOperationsKilled
2168+
- The member steps down to become a secondary.
21682169

2169-
The number of user operations killed when the :binary:`~bin.mongod`
2170-
stepped down.
2170+
- The member is actively performing a rollback.
21712171

2172-
.. versionadded:: 4.2
2172+
.. serverstatus:: metrics.repl.stateTransition.lastStateTransition
21732173

2174-
.. serverstatus:: metrics.repl.stepDown.userOperationsRunning
2174+
The transition being reported:
21752175

2176-
The number of user operations that remained running when the
2177-
:binary:`~bin.mongod` stepped down.
2176+
.. list-table::
2177+
:widths: 20 80
2178+
:header-rows: 1
21782179

2179-
.. versionadded:: 4.2
2180+
* - State Change
2181+
- Description
2182+
2183+
* - ``"stepUp"``
2184+
2185+
- The member steps up to become a primary.
2186+
2187+
* - ``"stepDown"``
2188+
- The member steps down to become a secondary.
2189+
2190+
* - ``"rollback"``
2191+
2192+
- The member is actively performing a rollback.
2193+
2194+
* - ``""``
2195+
2196+
- The member has not undergone any state changes.
2197+
2198+
.. serverstatus:: metrics.repl.stateTransition.userOperationsKilled
2199+
2200+
The number of user operations stopped during the
2201+
:binary:`~bin.mongod` instance's state change.
2202+
2203+
.. serverstatus:: metrics.repl.stateTransition.userOperationsRunning
2204+
2205+
The number of user operations that remained running during the
2206+
``mongod`` instance's state change.
21802207

21812208
.. serverstatus:: metrics.repl.syncSource
21822209

0 commit comments

Comments
 (0)