Skip to content

Commit ad3bafb

Browse files
authored
DOCSP-34843 config Database Clarification (#6411) (#6524)
* DOCSP-34843 Adds note for config on mongos * Moves the note under intro * Fixes build issue * Adds facet * minor edits * minor edits * Fixes per Lauren
1 parent 58f2c67 commit ad3bafb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/reference/config-database.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ The collections in the ``config`` database support:
2323
<sessions>` for standalones, replica sets, and sharded clusters and
2424
retryable writes for replica sets and sharded clusters.
2525

26+
.. note::
27+
28+
Sharded clusters may show different collections in the
29+
``config`` database, depending on whether you connect to
30+
:program:`mongos` or :program:`mongod`:
31+
32+
- On ``mongos``, the ``config`` database shows collections
33+
located on the config servers, such as
34+
:data:`~config.collections` or :data:`~config.chunks`.
35+
36+
- On ``mongod``, the ``config`` database shows
37+
collections specific to the given shard, such as
38+
:data:`~config.migrationCoordinators` or
39+
:data:`~config.rangeDeletions`.
40+
41+
When a config server and a shard are hosted on the same node,
42+
:program:`mongos` may have access to some shard-local
43+
collections in the ``config`` database.
44+
45+
2646
Restrictions
2747
------------
2848

0 commit comments

Comments
 (0)