Skip to content

Commit c7fa2c3

Browse files
authored
internal review feedback (#3240)
1 parent 4fc1c68 commit c7fa2c3

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

source/core/sharded-cluster-components.txt

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,21 @@ the near future, but do not need to at the time of deployment.
6565
Number of ``mongos`` and Distribution
6666
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6767

68-
Deploying multiple :binary:`~bin.mongos` routers supports high
69-
availability and scalability. If a proxy or load balancer is between the
70-
application and the ``mongos`` routers, you must configure it for
71-
:term:`client affinity`. Client affinity allows every connection from a
72-
single client to reach the same ``mongos``. For shard-level high
73-
availability, a common pattern is to place ``mongos`` instances on the
74-
same hardware that ``mongod`` instances are already running on.
75-
Another option is to embed ``mongos`` routers with
76-
application tier infrastructure.
77-
78-
There is no limit to the number of :binary:`~bin.mongos` routers you can
79-
have in a deployment. However, as :binary:`~bin.mongos` routers
80-
communicate frequently with your config servers, monitor config server
81-
performance closely as you increase the number of routers. If you see
82-
performance degradation, it may be beneficial to cap the number of
83-
:binary:`~bin.mongos` routers in your deployment.
68+
:binary:`~bin.mongos` routers support high availability and scalability
69+
when deploying multiple ``mongos`` instances. If a proxy or load
70+
balancer is between the application and the ``mongos`` routers, you
71+
must configure it for :term:`client affinity`. Client affinity allows
72+
every connection from a single client to reach the same ``mongos``.
73+
For shard-level high availability, either:
74+
75+
- Add ``mongos`` instances on the same hardware where ``mongos``
76+
instances are already running.
77+
- Embed ``mongos`` routers at the application level.
78+
79+
:binary:`~bin.mongos` routers communicate frequently with your config
80+
servers. As you increase the number of routers, performance may degrade.
81+
If performance degrades, reduce the number of routers. Your deployment
82+
should not have more than 30 ``mongos`` routers.
8483

8584
The following diagram shows a common sharded cluster architecture used
8685
in production:

0 commit comments

Comments
 (0)