Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-66996

Add warnings to ReplicaSetAwareServiceRegistry for services that block drain mode

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-03-06, Repl 2023-03-20, Repl 2023-04-03

      ReplicaSetAwareService implementations have the ability to run in drain mode and some of the ones that we have take advantage of that.

      We should add some logic in the ReplicaSetAwareServiceRegistry which keeps a tally of how much time each service spends in drain mode and then logs a warning if:

      1. The total time all services take is more than some threshold (say 500ms)
      2. Either one of the services takes more than some threshold (say 250ms)

      If there are other events on the RSAS that have the potential of causing unavailability if they take too much time, we should add warnings for them as well.

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: