Skip to content

Commit 417f278

Browse files
committed
DOCS-14455 Add references for numHosts targeted in shardingStatistics
1 parent 3e73a10 commit 417f278

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

source/reference/command/serverStatus.txt

+22-13
Original file line numberDiff line numberDiff line change
@@ -2751,19 +2751,28 @@ shardingStatistics
27512751

27522752
.. include:: /includes/fact-server-status-num-hosts-targeted.rst
27532753

2754-
.. note:: Running the :dbcommand:`serverStatus` on :binary:`mongos`
2755-
will provide insight into the aggregation operations find,
2756-
insert, update, delete and aggregate that run on a sharded
2757-
cluster.
2758-
2759-
Multi-shard operations can either be
2760-
:ref:`scatter-gather<sharding-query-patterns>`
2761-
or shard specific. Multi-shard scatter-gather operations can
2762-
:ref:`consume more resources<sharding-troubleshooting-scatter-gather>`,
2763-
by using the
2764-
:serverstatus:`shardingStatistics.numHostsTargeted`
2765-
metrics you can tune the aggregation queries that run on a
2766-
sharded cluster.
2754+
.. serverstatus:: shardingStatistics.numHostsTargeted
2755+
2756+
Indicates the number of shards targeted for ``CRUD`` operations and
2757+
aggregation commands. When a ``CRUD`` operation or aggregation
2758+
command is run, the following metrics will be incremented.
2759+
2760+
.. include:: /includes/fact-server-status-num-hosts-targeted.rst
2761+
2762+
.. note::
2763+
2764+
Running the :dbcommand:`serverStatus` command on :binary:`mongos`
2765+
will provide insight into the CRUD and aggregation operations that
2766+
run on a sharded cluster.
2767+
2768+
Multi-shard operations can either be
2769+
:ref:`scatter-gather<sharding-query-patterns>`
2770+
or shard specific. Multi-shard scatter-gather operations can
2771+
:ref:`consume more resources<sharding-troubleshooting-scatter-gather>`.
2772+
By using the
2773+
:serverstatus:`shardingStatistics.numHostsTargeted`
2774+
metrics you can tune the aggregation queries that run on a
2775+
sharded cluster.
27672776

27682777
shardedIndexConsistency
27692778
~~~~~~~~~~~~~~~~~~~~~~~

source/release-notes/4.4.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1920,8 +1920,6 @@ output:
19201920
``serverStatus`` Sharding Statistics Output Change
19211921
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19221922

1923-
CRUD Operations and Aggregations
1924-
19251923
:serverstatus:`shardingStatistics.numHostsTargeted`
19261924
which reports the number of shards targeted by CRUD operations and
19271925
aggregation commands. The relevant find, insert, update, delete or

0 commit comments

Comments
 (0)