@@ -274,52 +274,7 @@ arbiters and the other members of the replica set are secure. See the
274274documentation for :doc:`/administration/ssl` for more information.
275275As with all MongoDB components, run arbiters on secure networks.
276276
277- Because arbiters do not hold a copy of the data, they have minimal
278- resource requirements and do not require dedicated hardware.
279-
280- To prevent tied :term:`elections <election>`, do not add an arbiter to a
281- set if the set already has an odd number of voting members.
282-
283- Add an Arbiter
284- ``````````````
285-
286- 1. Create a data directory for the arbiter. The directory is used for
287- configuration information. It *will not* hold database collection data.
288- The following example creates the ``/data/arb`` data directory:
289-
290- .. code-block:: sh
291-
292- mkdir /data/arb
293-
294- #. Start the arbiter, making sure to specify the replica set and the
295- data directory. Consider the following example:
296-
297- .. code-block:: sh
298-
299- mongod --port 30000 --dbpath /data/arb --replSet rs
300-
301- #. In a :program:`mongo` shell connected to the :term:`primary`, add the
302- arbiter to the replica set by issuing a command that uses the
303- following syntax:
304-
305- .. code-block:: javascript
306-
307- rs.addArb("<hostname>:<port>")
308-
309- For example, if the arbiter runs on example.net:30000, you would
310- issue this command:
311-
312- .. code-block:: javascript
313-
314- rs.addArb("example.net:30000")
315-
316- .. seealso::
317-
318- - :setting:`replSet`
319-
320- - :option:`--replSet <mongod --replSet>`
321-
322- - :method:`rs.addArb()`
277+ To add an arbiter, see :ref:`replica-set-procedure-add-arbiter`.
323278
324279.. index:: replica set members; non-voting
325280.. _replica-set-non-voting-members:
@@ -472,7 +427,7 @@ number. :method:`rs.reconfig()` will not change the value of
472427.. _replica-set-member-priority-configuration:
473428
474429Adjusting Priority
475- ~~~~~~~~~~~~~~~~~~~~
430+ ~~~~~~~~~~~~~~~~~~
476431
477432To change the value of the :data:`members[n].priority` value in the
478433replica set configuration, use the following sequence of commands in
@@ -527,6 +482,50 @@ of the member with the highest :data:`members[n].priority` setting.
527482 <replica-set-reconfiguration-usage>` example revolves around
528483 changing the priorities of the :data:`members` of a replica set.
529484
485+ .. _replica-set-procedure-add-arbiter:
486+
487+ Adding an Arbiter
488+ ~~~~~~~~~~~~~~~~~
489+
490+ For a description of :term:`arbiters <arbiter>` and their purpose in
491+ :term:`replica sets <replica set>`, see :ref:`replica-set-arbiters`.
492+
493+ To prevent tied :term:`elections <election>`, do not add an arbiter to a
494+ set if the set already has an odd number of voting members.
495+
496+ Because arbiters do not hold a copies of collection data, they have minimal
497+ resource requirements and do not require dedicated hardware.
498+
499+ 1. Create a data directory for the arbiter. The directory is used for
500+ configuration information. It *will not* hold database collection data.
501+ The following example creates the ``/data/arb`` data directory:
502+
503+ .. code-block:: sh
504+
505+ mkdir /data/arb
506+
507+ #. Start the arbiter, making sure to specify the replica set and the
508+ data directory. Consider the following example:
509+
510+ .. code-block:: sh
511+
512+ mongod --port 30000 --dbpath /data/arb --replSet rs
513+
514+ #. In a :program:`mongo` shell connected to the :term:`primary`, add the
515+ ß arbiter to the replica set by issuing the :method:`rs.addArb()`
516+ method, which uses the following syntax:
517+
518+ .. code-block:: javascript
519+
520+ rs.addArb("<hostname>:<port>")
521+
522+ For example, if the arbiter runs on example.net:30000, you would
523+ issue this command:
524+
525+ .. code-block:: javascript
526+
527+ rs.addArb("example.net:30000")
528+
530529.. _replica-set-procedure-change-oplog-size:
531530
532531Changing Oplog Size
0 commit comments