Skip to content

Commit bb1156c

Browse files
Isabella Siukay-kim
authored andcommitted
DOCS-11897 add total number of committed, aborted, and started transactions to serverStatus
1 parent d456b04 commit bb1156c

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

source/reference/command/serverStatus.txt

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,13 +1452,20 @@ transactions
14521452
"transactions" : {
14531453
"retriedCommandsCount" : <NumberLong>,
14541454
"retriedStatementsCount" : <NumberLong>,
1455-
"transactionsCollectionWriteCount" : <NumberLong>
1455+
"transactionsCollectionWriteCount" : <NumberLong>,
1456+
"currentActive" : <NumberLong>,
1457+
"currentInactive" : <NumberLong>,
1458+
"currentOpen" : <NumberLong>,
1459+
"totalAborted" : <NumberLong>,
1460+
"totalCommitted" : <NumberLong>,
1461+
"totalStarted" : <NumberLong>
14561462
},
14571463

14581464
.. serverstatus:: transactions
14591465

14601466
A document with data about the :doc:`retryable writes
1461-
</core/retryable-writes>`.
1467+
</core/retryable-writes>` and
1468+
:doc:`multi-document transactions </core/transactions>`.
14621469

14631470
.. serverstatus:: transactions.retriedCommandsCount
14641471

@@ -1513,6 +1520,48 @@ transactions
15131520

15141521
.. versionadded:: 3.6.3
15151522

1523+
.. serverstatus:: transactions.currentActive
1524+
1525+
The total number of open transactions currently executing a command.
1526+
1527+
.. versionadded:: 4.0.2
1528+
1529+
.. serverstatus:: transactions.currentInactive
1530+
1531+
The total number of open transactions that are not currently
1532+
executing a command.
1533+
1534+
.. versionadded:: 4.0.2
1535+
1536+
.. serverstatus:: transactions.currentOpen
1537+
1538+
The total number of open transactions. A transaction is opened when
1539+
the first command is run as a part of that transaction, and stays
1540+
open until the transaction either commits or aborts.
1541+
1542+
.. versionadded:: 4.0.2
1543+
1544+
.. serverstatus:: transactions.totalAborted
1545+
1546+
The total number of transactions aborted on this server since the
1547+
:binary:`mongod <bin.mongod>` process's last startup.
1548+
1549+
.. versionadded:: 4.0.2
1550+
1551+
.. serverstatus:: transactions.totalCommitted
1552+
1553+
The total number of transactions committed on this server since the
1554+
:binary:`mongod <bin.mongod>` process's last startup.
1555+
1556+
.. versionadded:: 4.0.2
1557+
1558+
.. serverstatus:: transactions.totalStarted
1559+
1560+
The total number of transactions started on this server since the
1561+
:binary:`mongod <bin.mongod>` process's last startup.
1562+
1563+
.. versionadded:: 4.0.2
1564+
15161565
.. _server-status-wiredTiger:
15171566

15181567
wiredTiger

0 commit comments

Comments
 (0)