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