Skip to content

Commit e767a97

Browse files
authored
DOCSP-34843 config Database Clarification (#6411) (#6523)
* 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 3cf55f6 commit e767a97

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
@@ -20,6 +20,26 @@ The collections in the ``config`` database support:
2020
<sessions>` for standalones, replica sets, and sharded clusters and
2121
retryable writes for replica sets and sharded clusters.
2222

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

0 commit comments

Comments
 (0)