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

Add cumulative metric for the total refreshed connections

    • Fully Compatible
    • Service Arch 2021-03-22, Service Arch 2021-04-05, Service Arch 2021-04-19, Service Arch 2021-06-14, Service Arch 2021-06-28, Service Arch 2021-07-12, Service Arch 2022-1-10, Service Arch 2022-1-24
    • 173
    • 3

      One of the metrics reported by the ConnectionPool is totalRefreshing, which refers to the number of connections that are scheduled for a refresh. Connections may get scheduled for a refresh due to hitting a timeout (see here), or after getting returned to the pool (see here).

      It appears that the connection pool may not accurately report the number of connections scheduled for a refresh. For example, the following shows the increase in the number of hello commands (due to refreshing connections), but does not accurately report totalRefreshing.

      This ticket should investigate this possibility and provide fixes if necessary.

      This ticket should introduce a new, cumulative metric that tracks the total number of refreshed connections (e.g., totalRefreshed).

        1. always-refresh-after-timeout.png
          204 kB
          Amirsaman Memaripour
        2. checkout-delay-1.png
          115 kB
          Amirsaman Memaripour
        3. checkout-delay-2.png
          113 kB
          Amirsaman Memaripour
        4. checkout-delay-3.png
          105 kB
          Amirsaman Memaripour
        5. connection-refresh.png
          98 kB
          Amirsaman Memaripour
        6. no-refresh-for-active.png
          284 kB
          Amirsaman Memaripour
        7. pending-refresh.png
          198 kB
          Amirsaman Memaripour

            Assignee:
            daniel.morilha@mongodb.com Daniel Morilha (Inactive)
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: