@@ -193,23 +193,23 @@ behavior.
193
193
How many connections does each ``mongos`` need?
194
194
-----------------------------------------------
195
195
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
+ ------------------------------------------
205
205
206
206
:program:`mongos` uses a set of connection pools to communicate with
207
207
each :term:`shard`. These pools do not shrink when the number of
208
208
clients decreases.
209
209
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.
213
213
214
214
Where does MongoDB report on connections used by ``mongos``?
215
215
------------------------------------------------------------
0 commit comments