Skip re-evaluating sync source if node does not have enough ping stats from other nodes in replica set

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2020-05-18, Repl 2020-06-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Xuerui Fa
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: