Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6375

Add non-blocking subscription statistics to KahaDB

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.13.4
    • Fix Version/s: 5.14.0
    • Component/s: Broker, KahaDB
    • Labels:
      None

      Description

      Currently KahaDB TopicMessageStore supports returning the messageCount and messageSize for subscription but this requires locking the index and iterating to compute the information. I have a use case where I query this information regularly for the status of the broker and the performance takes a hit because of the locking.

      There should be an option to enable statistics counters to keep track of this information so that it can be queried without locking, such like the store currently tracks the total count and size but for each subscription also.

      This should be disabled by default because there will be some overhead for computing the metrics if there are a lot of subscriptions in the store.

        Attachments

          Activity

            People

            • Assignee:
              cshannon Christopher L. Shannon
              Reporter:
              cshannon Christopher L. Shannon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: