@@ -193,23 +193,23 @@ behavior.
193193How 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
207207each :term:`shard`. These pools do not shrink when the number of
208208clients 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
214214Where does MongoDB report on connections used by ``mongos``?
215215------------------------------------------------------------
0 commit comments