Skip to content

DOCS-270 migrate design concepts #196

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 3 commits into from
Sep 7, 2012
Merged
Show file tree
Hide file tree
Changes from 2 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
40 changes: 24 additions & 16 deletions source/administration/replica-sets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ configurations.
.. warning::

The :method:`rs.reconfig()` shell command can force the current
primary to step down, which causes an election. When the primary
primary to step down, which causes an :ref:`election <replica-set-elections>`. When the primary
steps down, the :program:`mongod` closes all client
connections. While, this typically takes 10-20 seconds, attempt to
make these changes during scheduled maintenance periods.

.. seealso::

- The :ref:`replica-set-elections` topic in the :doc:`/core/replication` document
- The :ref:`replica-set-election-internals` topic in the :doc:`/core/replication-internals` document

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears in a couple of places and should be an included file.

I'm not sure that this needs to be a list, but it needs some sort of terminal punctuation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

.. index:: replica set members; secondary only
.. _replica-set-secondary-only-members:
.. _replica-set-secondary-only-configuration:
Expand All @@ -69,9 +74,10 @@ these members from ever becoming primary.

To configure a member as secondary-only, set its
:data:`members[n].priority` value to ``0``. Any member with a
:data:`members[n].priority` equal to ``0`` will never seek election and
cannot become primary in any situation. For more information on priority
levels, see :ref:`replica-set-node-priority`.
:data:`members[n].priority` equal to ``0`` will never seek
:ref:`election <replica-set-elections>` and cannot become primary in any
situation. For more information on priority levels, see
:ref:`replica-set-node-priority`.

As an example of modifying member priorities, assume a four-member
replica set with member ``_id`` values of: ``0``, ``1``, ``2``, and
Expand Down Expand Up @@ -107,10 +113,10 @@ This sets the following:
If your replica set has an even number of members, add an
:ref:`arbiter <replica-set-arbiters>` to ensure that
members can quickly obtain a majority of votes in an
:ref:`election <replica-set-elections>` for primary.
election for primary.

.. seealso:: :data:`members[n].priority` and :ref:`Replica Set
Reconfiguration <replica-set-reconfiguration-usage>`.
Reconfiguration <replica-set-reconfiguration-usage>`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

.. index:: replica set members; hidden
.. _replica-set-hidden-members:
Expand Down Expand Up @@ -183,8 +189,8 @@ the amount of slave delay to apply:

- The size of the oplog is sufficient to capture *more than* the
number of operations that typically occur in that period of
time. See the section on :ref:`oplog sizing
<replica-set-oplog-sizing>` for more information.
time. For more information on oplog size, see the
:ref:`replica-set-oplog-sizing` topic in the :doc:`/core/replication` document.

Delayed members must have a :term:`priority` set to ``0`` to prevent
them from becoming primary in their replica sets. Also these members
Expand Down Expand Up @@ -233,7 +239,7 @@ Arbiters

Arbiters are special :program:`mongod` instances that do not hold a
copy of the data and thus cannot become primary. Arbiters exist solely
participate in :term:`elections <election>`.
participate in :ref:`elections <replica-set-elections>`.

.. note::

Expand Down Expand Up @@ -290,15 +296,14 @@ Non-Voting
~~~~~~~~~~

You may choose to change the number of votes that each member has in
:term:`elections <election>` for :term:`primary`. In general, all
:ref:`elections <replica-set-elections>` for :term:`primary`. In general, all
members should have only 1 vote to prevent intermittent ties, deadlock,
or the wrong members from becoming :term:`primary`. Use :ref:`replica
set priorities <replica-set-node-priority>` to control which members
are more likely to become primary.

To disable a member's ability to vote in :ref:`elections
<replica-set-elections>` use the following command sequence in the
:program:`mongo` shell.
To disable a member's ability to vote in elections, use the following
command sequence in the :program:`mongo` shell.

.. code-block:: javascript

Expand Down Expand Up @@ -454,7 +459,7 @@ number. :method:`rs.reconfig()` will not change the value of
.. warning::

Any replica set configuration change can trigger the current
:term:`primary` to step down, which forces an :term:`election`. This
:term:`primary` to step down, which forces an :ref:`election <replica-set-elections>`. This
causes the current shell session, and clients connected to this replica set,
to produce an error even when the operation succeeds.

Expand Down Expand Up @@ -486,7 +491,7 @@ the new configuration.

If a member has :data:`members[n].priority` set to ``0``, it is
ineligible to become :term:`primary` and will not seek
elections. :ref:`Hidden members <replica-set-hidden-members>`,
election. :ref:`Hidden members <replica-set-hidden-members>`,
:ref:`delayed members <replica-set-delayed-members>`, and
:ref:`arbiters <replica-set-arbiters>` all have :data:`members[n].priority`
set to ``0``.
Expand Down Expand Up @@ -741,4 +746,7 @@ data to a :term:`BSON` file that you can view using
You can prevent rollbacks by ensuring safe writes by using
the appropriate :term:`write concern`.

.. seealso:: :ref:`Replica Set Elections <replica-set-elections>`
.. seealso::

- The :ref:`replica-set-elections` topic in the :doc:`/core/replication` document
- The :ref:`replica-set-election-internals` topic in the :doc:`/core/replication-internals` document
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above comment.

Loading