@@ -65,22 +65,21 @@ the near future, but do not need to at the time of deployment.
65
65
Number of ``mongos`` and Distribution
66
66
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
67
67
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 ``mongos`` 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.
84
83
85
84
The following diagram shows a common sharded cluster architecture used
86
85
in production:
0 commit comments