Skip to content

Commit b4c69bf

Browse files
author
Ed Costello
committed
Cleanup sharding faq and related minor edits to sharding and mongos pages
1 parent 8bfdb28 commit b4c69bf

File tree

3 files changed

+21
-25
lines changed

3 files changed

+21
-25
lines changed

source/faq/sharding.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,23 +193,23 @@ behavior.
193193
How many connections does each ``mongos`` need?
194194
-----------------------------------------------
195195

196-
Typically, each client maintains as connection to
197-
:program:`mongos`. :program:`mongos` maintains a connection pool to
198-
support a single outgoing connection to each shard for. For incoming
199-
connections that direct read operations to secondaries, the
200-
:program:`mongos` will also need to maintain connects to each member
201-
of the replica set that provides the shard.
202-
203-
Why does ``mongos`` hold connections?
204-
-------------------------------------
196+
Each client maintains a connection to a :program:`mongos` instance.
197+
Each :program:`mongos` instance maintains a pool of connections to
198+
the members of a replica set supporting the sharded cluster.
199+
Connections between :program:`mongos` and :program:`mongod` instances
200+
are used by one client at a time (requests are not multiplexed or
201+
pipelined) and then returned to the connection pool.
202+
203+
Why does ``mongos`` hold connections open?
204+
------------------------------------------
205205

206206
:program:`mongos` uses a set of connection pools to communicate with
207207
each :term:`shard`. These pools do not shrink when the number of
208208
clients decreases.
209209

210-
This can lead to an unused :program:`mongos` with a large number open
211-
of connections. If the :program:`mongos` is no longer in use, you're
212-
safe restarting the process to close existing connections.
210+
This can lead to an unused :program:`mongos` with a large number
211+
of open connections. If the :program:`mongos` is no longer in use,
212+
it is safe to restart the process to close existing connections.
213213

214214
Where does MongoDB report on connections used by ``mongos``?
215215
------------------------------------------------------------

source/reference/mongos.txt

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
.. default-domain:: mongodb
12
.. _mongos:
23

34
==========
45
``mongos``
56
==========
67

7-
.. default-domain:: mongodb
88

99
Synopsis
1010
--------
@@ -17,28 +17,23 @@ From the perspective of the application, a
1717
:program:`mongos` instance behaves identically to any other MongoDB
1818
instance.
1919

20-
.. seealso::
21-
22-
See the ":wiki:`Sharding`" wiki page for more information regarding
23-
MongoDB's sharding functionality.
24-
25-
.. STUB ":doc:`/core/sharding`"
26-
2720
.. note::
2821

2922
.. versionchanged:: 2.1
30-
3123
Some aggregation operations using the :dbcommand:`aggregate` will
3224
cause :program:`mongos` instances to require more CPU resources
3325
than in previous versions. This modified performance profile may
34-
dictate alternate architecture decisions if you make use the
26+
dictate alternate architecture decisions if you use the
3527
:term:`aggregation framework` extensively in a sharded environment.
3628

29+
.. seealso::
30+
31+
* :doc:`/sharding`
32+
* :doc:`/core/sharding`
33+
3734
Options
3835
-------
3936

40-
.. binary:: mongos
41-
4237
.. program:: mongos
4338

4439
.. option:: --help, -h
@@ -252,7 +247,7 @@ Options
252247

253248
.. versionadded:: 2.2
254249

255-
:option:`--localThreshold` affects the logic that program:`mongos`
250+
:option:`--localThreshold` affects the logic that binary:`mongos`
256251
uses when selecting :term:`replica set` members to pass reads
257252
operations to from clients. Specify a value to
258253
:option:`--localThreshold` in milliseconds. The default value is

source/sharding.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Reference
7373
The following reference section describes sharding commands:
7474

7575
- :ref:`sharding-commands`
76+
- :ref:`faq/sharding.txt`
7677

7778
.. STUB tutorial/replace-one-configuration-server-in-a-shard-cluster
7879
.. STUB tutorial/replace-all-configuration-servers-in-a-shard-cluster

0 commit comments

Comments
 (0)