[DOCS-11925] Docs for SERVER-35624: Enable election handoff by default and update affected tests Created: 30/Jul/18  Updated: 29/Oct/23  Resolved: 02/Oct/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.7, 4.0.2, 4.1.2

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-35624 Enable election handoff by default an... Closed
Duplicate
is duplicated by DOCS-12181 Docs for SERVER-11086: Election hando... Closed
Participants:
Days since reply: 5 years, 19 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

----------------------------

Original Description

Description:

Election handoff is now enabled by default. This is configurable via a new server parameter, called "enableElectionHandoff", which accepts boolean values.

With this feature enabled, primaries that step down due to a replSetStepDown command (without force:true) will step up an eligible candidate. That node will call for an election immediately, as opposed to waiting for the election timeout to expire (which is 10 seconds by default). This is thus intended to speed up planned failovers. The primary that steps down picks the best candidate according to the following criteria (in order of importance):
1. It must be caught up and electable.
2. It has the highest priority (among all secondaries that meet #1)
3. Resolve ties by picking the member with the lowest index in the config

The user-facing behavior of the replSetStepDown command remains the same. It will not delay returning to the client. It is possible for the step-up to fail (e.g. due to network issues), in which case we would wait for an election timeout as before.

----------------------------

Description

Scope of changes (files that need work and how much)

  • reference/method/rs.stepDown / reference/method/rs.stepDown
  • rs configuration
  • electionTimeoutMillis – parameters
  • Not updating the following because the discussion is more auto failover vs rs.stepDown()
    • /replication
    • core/replica-set-elections

Impact to other docs outside of this product

none

MVP (work and date?)

Resources (e.g. Scope Docs, Invision)



 Comments   
Comment by Githook User [ 02/Oct/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11925: electionTimeoutMillis parameter
Branch: v3.6
https://github.com/mongodb/docs/commit/4ca63f7ee0e3cc6e526d917d5cb703512dc2fe0b

Comment by Githook User [ 02/Oct/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11925: electionTimeoutMillis parameter
Branch: master
https://github.com/mongodb/docs/commit/9a052ea92f9d80667aa036454e705242a706b6fc

Generated at Thu Feb 08 08:03:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.