Skip to content

Commit 84eb151

Browse files
authored
DOCSP-35753 serverStatus metric stepDown moved to stateTransaction (#5927) (#6037)
* 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 912112c commit 84eb151

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
@@ -1665,7 +1665,8 @@ metrics
16651665
numAutoReconfigsForRemovalOfNewlyAddedFields :
16661666
Long("<num>")
16671667
},
1668-
stepDown : {
1668+
stateTransition : {
1669+
lastStateTransition : <string>,
16691670
userOperationsKilled : Long("<num>"),
16701671
userOperationsRunning : Long("<num>")
16711672
},
@@ -2364,26 +2365,52 @@ metrics
23642365

23652366
.. versionadded:: 5.0
23662367

2367-
.. serverstatus:: metrics.repl.stepDown
2368+
.. serverstatus:: metrics.repl.stateTransition
23682369

2369-
Information on user operations that were running when the
2370-
:binary:`~bin.mongod` stepped down.
2370+
Information on user operations when the member undergoes one of the
2371+
following transitions that can stop user operations:
23712372

2372-
.. versionadded:: 4.2
2373+
- The member steps up to become a primary.
23732374

2374-
.. serverstatus:: metrics.repl.stepDown.userOperationsKilled
2375+
- The member steps down to become a secondary.
23752376

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

2379-
.. versionadded:: 4.2
2379+
.. serverstatus:: metrics.repl.stateTransition.lastStateTransition
23802380

2381-
.. serverstatus:: metrics.repl.stepDown.userOperationsRunning
2381+
The transition being reported:
23822382

2383-
The number of user operations that remained running when the
2384-
:binary:`~bin.mongod` stepped down.
2383+
.. list-table::
2384+
:widths: 20 80
2385+
:header-rows: 1
23852386

2386-
.. versionadded:: 4.2
2387+
* - State Change
2388+
- Description
2389+
2390+
* - ``"stepUp"``
2391+
2392+
- The member steps up to become a primary.
2393+
2394+
* - ``"stepDown"``
2395+
- The member steps down to become a secondary.
2396+
2397+
* - ``"rollback"``
2398+
2399+
- The member is actively performing a rollback.
2400+
2401+
* - ``""``
2402+
2403+
- The member has not undergone any state changes.
2404+
2405+
.. serverstatus:: metrics.repl.stateTransition.userOperationsKilled
2406+
2407+
The number of user operations stopped during the
2408+
:binary:`~bin.mongod` instance's state change.
2409+
2410+
.. serverstatus:: metrics.repl.stateTransition.userOperationsRunning
2411+
2412+
The number of user operations that remained running during the
2413+
``mongod`` instance's state change.
23872414

23882415
.. serverstatus:: metrics.repl.syncSource
23892416

0 commit comments

Comments
 (0)