[SERVER-47451] Skip re-evaluating sync source if node does not have enough ping stats from other nodes in replica set Created: 10/Apr/20 Updated: 29/Oct/23 Resolved: 21/May/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Samyukta Lanka | Assignee: | Xuerui Fa |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Repl 2020-05-18, Repl 2020-06-01 | ||||||||
| Participants: | |||||||||
| Description |
|
Similar to how we wait for enough ping stats when choosing a sync source, we should wait for enough ping stats before re-evaluating our sync source. We should wait for 5N pings (where N is the number of members in the replica set not counting ourselves) before re-evaluating our sync source to avoid unnecessary ping time fluctuation, since that is (approximately) the point at which all ping times will be weighted the same in the rolling average. |
| Comments |
| Comment by Githook User [ 21/May/20 ] |
|
Author: {'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}Message: |
| Comment by Githook User [ 21/May/20 ] |
|
Author: {'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}Message: Revert " This reverts commit 6696c3edd281bd4f0eea7d5439902eb460128890. |
| Comment by Githook User [ 20/May/20 ] |
|
Author: {'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}Message: |