File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,19 @@ Sharding requires at least two shards to distribute sharded data. Single
58
58
shard sharded clusters may be useful if you plan on enabling sharding in
59
59
the near future, but do not need to at the time of deployment.
60
60
61
+ .. _sharded-cluster-components-distribution:
62
+
61
63
Number of ``mongos`` and Distribution
62
64
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63
65
64
66
Deploying multiple :binary:`~bin.mongos` routers supports high
65
- availability and scalability. For shard-level high availability, a
66
- common pattern is to place :binary:`~bin.mongos` instances on the same
67
- hardware that :binary:`~bin.mongod` instances are already running on.
68
- Another option is to embed :binary:`~bin.mongos` routers with
67
+ availability and scalability. If a proxy or load balancer is between the
68
+ application and the ``mongos`` routers, you must configure it for
69
+ :term:`client affinity`. Client affinity allows every connection from a
70
+ single client to reach the same ``mongos``. For shard-level high
71
+ availability, a common pattern is to place ``mongos`` instances on the
72
+ same hardware that ``mongos`` instances are already running on.
73
+ Another option is to embed ``mongos`` routers with
69
74
application tier infrastructure.
70
75
71
76
There is no limit to the number of :binary:`~bin.mongos` routers you can
Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ Glossary
154
154
155
155
Client can also refer to a single thread or process.
156
156
157
+ client affinity
158
+ A consistent client connection to a specified data source.
159
+
157
160
cluster
158
161
See :term:`sharded cluster`.
159
162
You can’t perform that action at this time.
0 commit comments