Skip to content

Commit 1519279

Browse files
npentrelandf-mongodb
authored andcommitted
DOCS-14195 currentOp for ReshardingRecipientSvc
1 parent 917e2f5 commit 1519279

File tree

2 files changed

+315
-1
lines changed

2 files changed

+315
-1
lines changed

source/reference/command/currentOp.txt

Lines changed: 158 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,110 @@ Output Fields
11341134

11351135
.. versionadded:: 5.0
11361136

1137+
.. data:: currentOp.approxDocumentsToCopy
1138+
1139+
The approximate number of documents to be copied from the donor
1140+
shards to the recipient shards during the resharding operation. This
1141+
number is an estimate that is set at the beginning of the resharding
1142+
operation and does not change after it has been set. The number is
1143+
set to 0 when a new resharding operation starts. It is
1144+
possible for ``$currentOp.documentsCopied`` and
1145+
``$currentOp.bytesCopied`` to end up exceeding
1146+
``$currentOp.approxDocumentsToCopy`` and
1147+
``$currentOp.approxBytesToCopy``, respectively, if
1148+
the post-resharding data distribution is not perfectly uniform.
1149+
1150+
Only present on a recipient shard when a resharding operation is
1151+
taking place.
1152+
1153+
.. versionadded:: 5.0
1154+
1155+
.. data:: currentOp.documentsCopied
1156+
1157+
The number of documents copied form donor shards to recipient shards
1158+
during the resharding operation. The number is set to 0 when a new
1159+
resharding operation starts.
1160+
1161+
Only present on a recipient shard when a resharding operation is
1162+
taking place.
1163+
1164+
.. versionadded:: 5.0
1165+
1166+
.. data:: currentOp.approxBytesToCopy
1167+
1168+
The approximate number of bytes to be copied from the donor shards to
1169+
the recipient shards during the resharding operation. This number is
1170+
an estimate that is set at the beginning of the resharding operation
1171+
and does not change after it has been set. The number is set to 0
1172+
when a new resharding operation starts. It is possible for
1173+
``$currentOp.documentsCopied`` and ``$currentOp.bytesCopied`` to end
1174+
up exceeding ``$currentOp.approxDocumentsToCopy`` and
1175+
``$currentOp.approxBytesToCopy``, respectively, if the
1176+
post-resharding data distribution is not perfectly uniform.
1177+
1178+
Only present on a recipient shard when a resharding operation is
1179+
taking place.
1180+
1181+
.. versionadded:: 5.0
1182+
1183+
.. data:: currentOp.bytesCopied
1184+
1185+
The number of bytes copied from donor shards to recipient shards
1186+
during the resharding operation. The number is set to 0 when a new
1187+
resharding operation starts.
1188+
1189+
Only present on a recipient shard when a resharding operation is
1190+
taking place.
1191+
1192+
.. versionadded:: 5.0
1193+
1194+
.. data:: currentOp.totalCopyTimeElapsed
1195+
1196+
The total elapsed time, in seconds, for ongoing data copy tasks from
1197+
donor shards to recipient shards for the current resharding
1198+
operation. The time is set to 0 when a new resharding operation
1199+
starts.
1200+
1201+
Only present on a recipient shard when a resharding operation is
1202+
taking place.
1203+
1204+
.. versionadded:: 5.0
1205+
1206+
.. data:: currentOp.oplogEntriesFetched
1207+
1208+
The number of entries fetched from the :term:`oplog` for the current
1209+
resharding operation. The number is set to 0 when a new resharding
1210+
operation starts.
1211+
1212+
Only present on a recipient shard when a resharding operation is
1213+
taking place.
1214+
1215+
.. versionadded:: 5.0
1216+
1217+
.. data:: currentOp.oplogEntriesApplied
1218+
1219+
The number of entries applied to the :term:`oplog` for the current
1220+
resharding operation. The number is set to 0 when a new resharding
1221+
operation starts.
1222+
1223+
Only present on a recipient shard when a resharding operation is
1224+
taking place.
1225+
1226+
.. versionadded:: 5.0
1227+
1228+
.. data:: currentOp.totalApplyTimeElapsed
1229+
1230+
The total elapsed time, in seconds, for the apply step of the
1231+
current resharding operation. In the apply step, recipient shards
1232+
apply :term:`oplog` entries to modify their data based on new
1233+
incoming writes from donor shards. The time is set to 0 when a new
1234+
resharding operation starts.
1235+
1236+
Only present on a recipient shard when a resharding operation is
1237+
taking place.
1238+
1239+
.. versionadded:: 5.0
1240+
11371241
.. data:: currentOp.countWritesDuringCriticalSection
11381242

11391243
The number of writes perfomed in the critical section for the current
@@ -1207,6 +1311,59 @@ Output Fields
12071311

12081312
.. versionadded:: 5.0
12091313

1314+
.. data:: currentOp.recipientState
1315+
1316+
The current state of a recipient shard for a resharding operation.
1317+
The state is set to ``unused`` when a new resharding operation
1318+
starts.
1319+
1320+
Only present on a donor shard when a resharding operation is taking
1321+
place.
1322+
1323+
.. list-table::
1324+
:widths: 20 80
1325+
:header-rows: 1
1326+
1327+
* - State
1328+
- Description
1329+
1330+
* - ``unused``
1331+
- The resharding operation is about to start.
1332+
1333+
* - ``awaiting-fetch-timestamp``
1334+
- The recipient shard is waiting for the donor shards to be
1335+
prepared to donate their data.
1336+
1337+
* - ``creating-collection``
1338+
- The recipient shard is creating the new sharded collection.
1339+
1340+
* - ``cloning``
1341+
- The recipient shard is receiving data from the donor shards.
1342+
1343+
* - ``applying``
1344+
- The recipient shard is applying :term:`oplog` entries to
1345+
modify its copy of the data based on the new incoming writes
1346+
from donor shards. The recipient shard data is not yet
1347+
consistent with the donor shard data.
1348+
1349+
* - ``steady-state``
1350+
- The recipient shard data is consistent with the donor shard
1351+
data.
1352+
1353+
* - ``strict-consistency``
1354+
- The recipient shard has all data changes.
1355+
1356+
* - ``renaming``
1357+
- The recipient shard renames the new sharded collection.
1358+
1359+
* - ``done``
1360+
- The resharding operation is complete.
1361+
1362+
* - ``error``
1363+
- An error occurred during the resharding operation.
1364+
1365+
.. versionadded:: 5.0
1366+
12101367
.. data:: currentOp.coordinatorState
12111368

12121369
The state of the resharding coordinator for the current resharding
@@ -1306,4 +1463,4 @@ Output Fields
13061463
* - ``canceled``
13071464
- The resharding operation was canceled.
13081465

1309-
.. versionadded:: 5.0
1466+
.. versionadded:: 5.0

source/reference/operator/aggregation/currentOp.txt

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,110 @@ relevant for the operation:
15911591

15921592
.. versionadded:: 5.0
15931593

1594+
.. data:: $currentOp.approxDocumentsToCopy
1595+
1596+
The approximate number of documents to be copied from the donor
1597+
shards to the recipient shards during the resharding operation. This
1598+
number is an estimate that is set at the beginning of the resharding
1599+
operation and does not change after it has been set. The number is
1600+
set to 0 when a new resharding operation starts. It is
1601+
possible for ``$currentOp.documentsCopied`` and
1602+
``$currentOp.bytesCopied`` to end up exceeding
1603+
``$currentOp.approxDocumentsToCopy`` and
1604+
``$currentOp.approxBytesToCopy``, respectively, if
1605+
the post-resharding data distribution is not perfectly uniform.
1606+
1607+
Only present on a recipient shard when a resharding operation is
1608+
taking place.
1609+
1610+
.. versionadded:: 5.0
1611+
1612+
.. data:: $currentOp.documentsCopied
1613+
1614+
The number of documents copied form donor shards to recipient shards
1615+
during the resharding operation. The number is set to 0 when a new
1616+
resharding operation starts.
1617+
1618+
Only present on a recipient shard when a resharding operation is
1619+
taking place.
1620+
1621+
.. versionadded:: 5.0
1622+
1623+
.. data:: $currentOp.approxBytesToCopy
1624+
1625+
The approximate number of bytes to be copied from the donor shards to
1626+
the recipient shards during the resharding operation. This number is
1627+
an estimate that is set at the beginning of the resharding operation
1628+
and does not change after it has been set. The number is set to 0
1629+
when a new resharding operation starts. It is possible for
1630+
``$currentOp.documentsCopied`` and ``$currentOp.bytesCopied`` to end
1631+
up exceeding ``$currentOp.approxDocumentsToCopy`` and
1632+
``$currentOp.approxBytesToCopy``, respectively, if the
1633+
post-resharding data distribution is not perfectly uniform.
1634+
1635+
Only present on a recipient shard when a resharding operation is
1636+
taking place.
1637+
1638+
.. versionadded:: 5.0
1639+
1640+
.. data:: $currentOp.bytesCopied
1641+
1642+
The number of bytes copied from donor shards to recipient shards
1643+
during the resharding operation. The number is set to 0 when a new
1644+
resharding operation starts.
1645+
1646+
Only present on a recipient shard when a resharding operation is
1647+
taking place.
1648+
1649+
.. versionadded:: 5.0
1650+
1651+
.. data:: $currentOp.totalCopyTimeElapsed
1652+
1653+
The total elapsed time, in seconds, for ongoing data copy tasks from
1654+
donor shards to recipient shards for the current resharding
1655+
operation. The time is set to 0 when a new resharding operation
1656+
starts.
1657+
1658+
Only present on a recipient shard when a resharding operation is
1659+
taking place.
1660+
1661+
.. versionadded:: 5.0
1662+
1663+
.. data:: $currentOp.oplogEntriesFetched
1664+
1665+
The number of entries fetched from the :term:`oplog` for the current
1666+
resharding operation. The number is set to 0 when a new resharding
1667+
operation starts.
1668+
1669+
Only present on a recipient shard when a resharding operation is
1670+
taking place.
1671+
1672+
.. versionadded:: 5.0
1673+
1674+
.. data:: $currentOp.oplogEntriesApplied
1675+
1676+
The number of entries applied to the :term:`oplog` for the current
1677+
resharding operation. The number is set to 0 when a new resharding
1678+
operation starts.
1679+
1680+
Only present on a recipient shard when a resharding operation is
1681+
taking place.
1682+
1683+
.. versionadded:: 5.0
1684+
1685+
.. data:: $currentOp.totalApplyTimeElapsed
1686+
1687+
The total elapsed time, in seconds, for the apply step of the
1688+
current resharding operation. In the apply step, recipient shards
1689+
apply :term:`oplog` entries to modify their data based on new
1690+
incoming writes from donor shards. The time is set to 0 when a new
1691+
resharding operation starts.
1692+
1693+
Only present on a recipient shard when a resharding operation is
1694+
taking place.
1695+
1696+
.. versionadded:: 5.0
1697+
15941698
.. data:: $currentOp.countWritesDuringCriticalSection
15951699

15961700
The number of writes perfomed in the critical section for the current
@@ -1664,6 +1768,59 @@ relevant for the operation:
16641768

16651769
.. versionadded:: 5.0
16661770

1771+
.. data:: $currentOp.recipientState
1772+
1773+
The current state of a recipient shard for a resharding operation.
1774+
The state is set to ``unused`` when a new resharding operation
1775+
starts.
1776+
1777+
Only present on a donor shard when a resharding operation is taking
1778+
place.
1779+
1780+
.. list-table::
1781+
:widths: 20 80
1782+
:header-rows: 1
1783+
1784+
* - State
1785+
- Description
1786+
1787+
* - ``unused``
1788+
- The resharding operation is about to start.
1789+
1790+
* - ``awaiting-fetch-timestamp``
1791+
- The recipient shard is waiting for the donor shards to be
1792+
prepared to donate their data.
1793+
1794+
* - ``creating-collection``
1795+
- The recipient shard is creating the new sharded collection.
1796+
1797+
* - ``cloning``
1798+
- The recipient shard is receiving data from the donor shards.
1799+
1800+
* - ``applying``
1801+
- The recipient shard is applying :term:`oplog` entries to
1802+
modify its copy of the data based on the new incoming writes
1803+
from donor shards. The recipient shard data is not yet
1804+
consistent with the donor shard data.
1805+
1806+
* - ``steady-state``
1807+
- The recipient shard data is consistent with the donor shard
1808+
data.
1809+
1810+
* - ``strict-consistency``
1811+
- The recipient shard has all data changes.
1812+
1813+
* - ``renaming``
1814+
- The recipient shard renames the new sharded collection.
1815+
1816+
* - ``done``
1817+
- The resharding operation is complete.
1818+
1819+
* - ``error``
1820+
- An error occurred during the resharding operation.
1821+
1822+
.. versionadded:: 5.0
1823+
16671824
.. data:: $currentOp.coordinatorState
16681825

16691826
The state of the resharding coordinator for the current resharding

0 commit comments

Comments
 (0)