Skip to content

notes about using sharding with "localhost" #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions source/administration/sharding.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,19 @@ scratch, use the following procedure as a starting point:
If you do not specify a shard key, MongoDB will shard the
collection using the ``_id`` field, and this is rarely ideal.

Testing Sharding with "localhost"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Because all components of a sharded cluster must be able to reach one
another over the network, there are special restrictions to be aware of
when configuring sharding on a single machine.

If you use either "localhost" or "127.0.0.1" as the hostname portion of
any host identifier (the ``host`` argument to ``addShard``, or the value
to the ``--configdb`` setting for :program:`mongos`), then you must use
"localhost" or "127.0.0.1" for all such settings. If you do not, you
will receive an error.

Cluster Management
------------------

Expand Down