File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,19 @@ scratch, use the following procedure as a starting point:
183
183
If you do not specify a shard key, MongoDB will shard the
184
184
collection using the ``_id`` field, and this is rarely ideal.
185
185
186
+ Testing Sharding with "localhost"
187
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188
+
189
+ Because all components of a sharded cluster must be able to reach one
190
+ another over the network, there are special restrictions to be aware of
191
+ when configuring sharding on a single machine.
192
+
193
+ If you use either "localhost" or "127.0.0.1" as the hostname portion of
194
+ any host identifier (the ``host`` argument to ``addShard``, or the value
195
+ to the ``--configdb`` setting for :program:`mongos`), then you must use
196
+ "localhost" or "127.0.0.1" for all such settings. If you do not, you
197
+ will receive an error.
198
+
186
199
Cluster Management
187
200
------------------
188
201
You can’t perform that action at this time.
0 commit comments