Skip to content

Commit 1b07592

Browse files
authored
DOCSP-35753 serverStatus metric stepDown moved to stateTransaction (#5927)
* 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 a01aea6 commit 1b07592

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
@@ -1755,7 +1755,8 @@ metrics
17551755
reconfig : {
17561756
numAutoReconfigsForRemovalOfNewlyAddedFields : Long("<num>")
17571757
},
1758-
stepDown : {
1758+
stateTransition : {
1759+
lastStateTransition : <string>,
17591760
userOperationsKilled : Long("<num>"),
17601761
userOperationsRunning : Long("<num>")
17611762
},
@@ -2567,26 +2568,52 @@ metrics
25672568

25682569
.. versionadded:: 5.0
25692570

2570-
.. serverstatus:: metrics.repl.stepDown
2571+
.. serverstatus:: metrics.repl.stateTransition
25712572

2572-
Information on user operations that were running when the
2573-
:binary:`~bin.mongod` stepped down.
2573+
Information on user operations when the member undergoes one of the
2574+
following transitions that can stop user operations:
25742575

2575-
.. versionadded:: 4.2
2576+
- The member steps up to become a primary.
25762577

2577-
.. serverstatus:: metrics.repl.stepDown.userOperationsKilled
2578+
- The member steps down to become a secondary.
25782579

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

2582-
.. versionadded:: 4.2
2582+
.. serverstatus:: metrics.repl.stateTransition.lastStateTransition
25832583

2584-
.. serverstatus:: metrics.repl.stepDown.userOperationsRunning
2584+
The transition being reported:
25852585

2586-
The number of user operations that remained running when the
2587-
:binary:`~bin.mongod` stepped down.
2586+
.. list-table::
2587+
:widths: 20 80
2588+
:header-rows: 1
25882589

2589-
.. versionadded:: 4.2
2590+
* - State Change
2591+
- Description
2592+
2593+
* - ``"stepUp"``
2594+
2595+
- The member steps up to become a primary.
2596+
2597+
* - ``"stepDown"``
2598+
- The member steps down to become a secondary.
2599+
2600+
* - ``"rollback"``
2601+
2602+
- The member is actively performing a rollback.
2603+
2604+
* - ``""``
2605+
2606+
- The member has not undergone any state changes.
2607+
2608+
.. serverstatus:: metrics.repl.stateTransition.userOperationsKilled
2609+
2610+
The number of user operations stopped during the
2611+
:binary:`~bin.mongod` instance's state change.
2612+
2613+
.. serverstatus:: metrics.repl.stateTransition.userOperationsRunning
2614+
2615+
The number of user operations that remained running during the
2616+
``mongod`` instance's state change.
25902617

25912618
.. serverstatus:: metrics.repl.syncSource
25922619

0 commit comments

Comments
 (0)