[DOCS-13526] Investigate changes in SERVER-38731: Ability to specify sync source read preference in initial sync Created: 18/Mar/20  Updated: 13/Nov/23  Resolved: 07/May/20

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.2.7, 4.7.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Ravind Kumar (Inactive)
Resolution: Fixed Votes: 0
Labels: docs-replication
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-38731 Ability to specify sync source read p... Closed
Duplicate
is duplicated by DOCS-13601 Investigate changes in SERVER-46823: ... Closed
Participants:
Days since reply: 3 years, 37 weeks, 1 day ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Downstream Change Summary

Adds parameter initialSyncSourceReadPreference; see Initial Sync Semantics documentation.

Description of Linked Ticket

Our current implementation of choosing a sync source for initial sync as well as steady state sync could be improved to include preferences provided by the user for situations including:

  • not wanting to sync from the primary to mitigate impact to production applications that are targeting the primary
  • preference to sync from a node on the same LAN vs having multiple nodes make the trip across the WAN (even if ping times would dictate otherwise)
  • syncing from a specific node based on specific user preference

If the preference is not specified or can not be accommodated then we should fall back to choosing based on latency and currency as we do today.  

It would be helpful for the specification of a sync source preference to be part of the replica set configuration so it is easily noticed and easily managed.  The log should reflect the preference and the reason it was overridden when need be.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 26/May/20 ]

Author:

{'name': 'rk-mongo', 'email': 'ravind.kumar@mongodb.com', 'username': 'rkumar-mongo'}

Message: [v4.2] DOCS-13526: set initial sync source via initialSyncSourceReadPreference
Branch: v4.2
https://github.com/mongodb/docs/commit/d921f1c1af457ac72c4fde2db9e3ac452d222dc9

Comment by Ravind Kumar (Inactive) [ 07/May/20 ]

https://github.com/mongodb/docs/commit/13b24a915a1aab855d74f5790206a9d03c28ef5d

Once 4.2.7 releases we will merge that branch. As of such, marking this as closed.

Comment by Githook User [ 07/May/20 ]

Author:

{'name': 'rk-mongo', 'email': 'ravind.kumar@mongodb.com', 'username': 'rkumar-mongo'}

Message: [v4.2] DOCS-13526: set initial sync source via initialSyncSourceReadPreference
Branch: v4.2.7
https://github.com/mongodb/docs/commit/13b24a915a1aab855d74f5790206a9d03c28ef5d

Comment by Ravind Kumar (Inactive) [ 30/Apr/20 ]

Pushed to master for v4.4. Will complete once 4.2.7 releases.

Comment by Githook User [ 30/Apr/20 ]

Author:

{'name': 'rk-mongo', 'email': 'ravind.kumar@mongodb.com', 'username': 'rkumar-mongo'}

Message: DOCS-13526: set initial sync source via initialSyncSourceReadPreference
Branch: master
https://github.com/mongodb/docs/commit/9d18a451e41eb7e4490582d77e88d06566639661

Comment by Ravind Kumar (Inactive) [ 18/Mar/20 ]

BACKPORT-6111 for 4.4.

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