Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-374

ConnPoolControl should provide list of known routes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 4.4-alpha1
    • HttpCore, HttpCore NIO
    • None

    Description

      Currently ConnPoolControl.getStats(HttpRoute) requires caller to store known routes somewhere to get complete detailed connections stats, for example, when checking for slow backends.

      My suggestion is to add Set<T> getRoutes(); function to ConnPoolControl which will return snapshot of all routes served by this pool.
      With this function it will be able to get all routes stats, detect the weak links among backends and report them.

      I understand, that this change will break compatibility and won't be shipped with any 4.3.x version, but can we have this in 4.4?

      Attachments

        1. httpcore-getRoutes.patch
          4 kB
          Dmitry Potapov
        2. httpclient-getRoutes.patch
          6 kB
          Dmitry Potapov
        3. httpasyncclient-getRoutes.patch
          2 kB
          Dmitry Potapov
        4. httpcore-getRoutes.patch
          4 kB
          Dmitry Potapov
        5. httpclient-getRoutes.patch
          6 kB
          Dmitry Potapov
        6. httpasyncclient-getRoutes.patch
          2 kB
          Dmitry Potapov
        7. 01-PoolingHttpClientConnectionManager-getRoutes.patch
          4 kB
          Dmitry Potapov
        8. 01-PoolingNHttpClientConnectionManager-getRoutes.patch
          0.8 kB
          Dmitry Potapov

        Activity

          People

            Unassigned Unassigned
            hirthwork Dmitry Potapov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: