Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1778

Reject HeartbeatFrequencyMS of less than 500ms

    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The Server Monitoring spec explicitly forbids setting a heartbeatFrequencyMS of less than 500ms:

      For both multi- and single-threaded drivers, the driver MUST NOT permit users to configure it less than minHeartbeatFrequencyMS (500ms).

      Setting a heartbeatFrequencyMS of less than 500ms may only have an observable difference when monitoring 4.4+ servers with streamable ismaster. Previous polling behavior appears to respect the 500ms minimum delay looking at x/mongo/driver/topology/server.go).

            Assignee:
            joy.wang@mongodb.com Joy Wang
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: