-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Programmability
The host selection mechanism of mirrored read (which selects all electable secondaries) can be improved to exclude secondaries that are lagged behind for certain amount of time. This is because
- Lagged secondaries are pretty unlikely to be elected as primary.
- Due to locality, queries on primary are more likely targeting latest writes, and since lagged secondaries may not have the latest inserted documents, the mirrored reads may end up reading nothing, and is simply wasted. And I guess even if it finds the document, it may result in churns in the cache.
- It can help void extra load as lagged secondaries trying to catch up.
- is related to
-
SERVER-70510 Avoid considering recovering nodes as electable
- Backlog