Skip to content

DOCS-767 specify multiple hosts #412

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
Nov 16, 2012
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions source/includes/fact-multiple-hosts.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
For replica sets, you can specify multiple hosts using the following
format:

.. code-block:: javascript

<replica_set_name>/<hostname1><:port>,<hostname2:<port>,...
4 changes: 2 additions & 2 deletions source/reference/mongodump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Options
running on a port other than ``27017``.

To connect to a replica set, use the :option:`--host <mongodump --host>`
argument with a setname, followed by a slash and a comma
separated list of host names and port numbers. The :program:`mongodump`
argument with a setname, followed by a slash and a comma-separated
list of host names and port numbers. The :program:`mongodump`
utility will, given the seed of at least one connected set member,
connect to the primary member of that set. This option would resemble:

Expand Down
2 changes: 2 additions & 0 deletions source/reference/mongoexport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Options
Optionally, specify a port number to connect a MongoDB instance
running on a port other than ``27017``.

.. include:: /includes/fact-multiple-hosts.rst

.. option:: --port <port>

Specifies the port number, if the MongoDB instance is not running on
Expand Down
4 changes: 2 additions & 2 deletions source/reference/mongoimport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ Options
running on a port other than ``27017``.

To connect to a replica set, use the :option:`--host` argument with a
setname, followed by a slash and a comma separated list of host and
setname, followed by a slash and a comma-separated list of host and
port names. The :program:`mongo` utility will, given the seed of at least
one connected set member, connect to primary node of that set. this
one connected set member, connect to primary node of that set. This
option would resemble:

.. code-block:: sh
Expand Down
2 changes: 2 additions & 0 deletions source/reference/mongooplog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Options
You can always connect directly to a single :program:`mongod`
instance by specifying the host and port number directly.

.. include:: /includes/fact-multiple-hosts.rst

.. option:: --port

Specifies the port number of the :program:`mongod` instance where
Expand Down
2 changes: 2 additions & 0 deletions source/reference/mongorestore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Options
Optionally, specify a port number to connect a MongoDB instance
running on a port other than ``27017``.

.. include:: /includes/fact-multiple-hosts.rst

.. option:: --port <port>

Specifies the port number, if the MongoDB instance is not running
Expand Down
2 changes: 2 additions & 0 deletions source/reference/mongosniff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Options
Specify the target host name and port in the ``<host>:<port>``
format.

.. include:: /includes/fact-multiple-hosts.rst

.. option:: --source <NET [interface]>, <FILE [filename]>, <DIAGLOG [filename]>

Specifies source material to inspect. Use ``--source NET
Expand Down
2 changes: 2 additions & 0 deletions source/reference/mongostat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ Options
Optionally, specify a port number to connect a MongoDB instance
running on a port other than ``27017``.

.. include:: /includes/fact-multiple-hosts.rst

.. option:: --port <port>

Specifies the port number, if the MongoDB instance is not running on
Expand Down
2 changes: 2 additions & 0 deletions source/reference/mongotop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Options
Optionally, specify a port number to connect a MongoDB instance
running on a port other than ``27017``.

.. include:: /includes/fact-multiple-hosts.rst

.. option:: --port <port>

Specifies the port number, if the MongoDB instance is not running on
Expand Down