@@ -330,43 +330,43 @@ Replica Set Configuration Fields
330
330
331
331
.. rsconf:: members[n].priority
332
332
333
- .. versionchanged:: 3.6
334
-
335
- Starting in MongoDB 3.6, arbiters have the priority ``0``. If an
336
- arbiter has a priority of ``1``, MongoDB 3.6 reconfigures the
337
- arbiter to have a priority of ``0``.
338
-
339
333
*Optional*.
340
334
341
335
*Type*: Number between 0 and 1000 for primary/secondary; 0 or 1 for arbiters.
342
336
343
337
*Default*: 1.0 for primary/secondary; 0 for arbiters.
344
338
345
- A number that indicates the relative eligibility of a member to
346
- become a :term:`primary`.
339
+ A number that indicates the relative likelihood of a replica set
340
+ member to become the :term:`primary`.
347
341
348
- Specify higher values to make a member *more* eligible to become
349
- :term:`primary`, and lower values to make the member *less*
350
- eligible. A member with a :rsconf:`members[n].priority` of ``0`` is
351
- ineligible to become primary.
342
+ - To increase the likelihood that a member becomes the primary,
343
+ specify a higher ``priority`` value for that member.
352
344
353
- .. include:: /includes/fact-rs-nonzero-priority-vote-restriction.rst
345
+ - To decrease the likelihood that a member becomes the primary,
346
+ specify a lower ``priority`` value for that member.
354
347
355
- Changing the balance of priority in a replica set will trigger
356
- one or more elections. If a lower priority secondary is elected
357
- over a higher priority secondary, replica set members will
358
- continue to call elections until the highest priority available
359
- member becomes primary.
348
+ Changing a member's priority triggers one or more elections. The
349
+ election algorithm makes a best-effort attempt to elect the
350
+ highest-priority member the primary. However, a lower-priority
351
+ member may become the primary even if a higher-priority secondary
352
+ is available.
353
+
354
+ If a lower-priority member becomes the primary, the server
355
+ continues to periodically call elections until the
356
+ highest-priority replica set member is the primary. The frequency
357
+ at which the elections occur depends on the difference in priority
358
+ between the elected member and the highest-priority member.
359
+
360
+ A member with a priority of ``0`` cannot become the primary.
360
361
361
- Members with :rsconf:`~members[n].priority` of ``0`` can
362
- acknowledge write operations issued with :ref:`write-concern`.
363
- For write operations issued with :writeconcern:`"majority"` write
364
- concern, the member must also be a voting member (i.e.
365
- :rsconf:`~members[n].votes` is greater than ``0``).
362
+ Non-voting members (meaning members that have
363
+ :rsconf:`~members[n].votes` set to ``0``) must have a priority of
364
+ ``0``.
366
365
367
366
.. seealso::
368
367
369
- :ref:`Replica Set Elections <replica-set-elections>`.
368
+ - :ref:`Replica Set Elections <replica-set-elections>`
369
+ - :ref:`rs-election-priority`
370
370
371
371
.. rsconf:: members[n].tags
372
372
0 commit comments