1. Qpid
  2. QPID-4632

Change Threshold Alerts from Level-Sensitive to Edge-Triggered


    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20
    • Fix Version/s: 0.21
    • Component/s: C++ Broker
    • Labels:


      Queue threshold events are currently level-sensitive and require a rate-limiting feature. Every time a message is enqueued and the queue depth is above the configured threshold, an event is potentially raised. The repeat-interval attribute prevents the event from being raised too frequently.

      Also, there is no way to produce an event for a lower or going-down threshold.

      The threshold feature should be changed to be edge-triggered as follows:

      Per-queue configuration for thresholds is:

      • upper-threshold (bytes and messages)
      • lower-threshold (bytes and messages)

      Two event types are (or one type with an argument) defined:

      • threshold crossed increasing
      • threshold crossed decreasing

      The increasing event is raised when the queue depth goes from (upper-threshold - 1) to upper-threshold.

      The decreasing event is raised when the queue depth goes from (lower-threshold + 1) to lower-threshold.

      The upper and lower thresholds should have some gap between them to establish hysteresis which will result in limited event rates.

      Message and Byte thresholds will be handled independently.


        Ted Ross created issue -
        Ted Ross made changes -
        Field Original Value New Value
        Assignee Ted Ross [ tedross ]
        Ted Ross added a comment -

        Proposed Patch

        Ted Ross added a comment - Proposed Patch
        Ted Ross made changes -
        Attachment QPID-4632.patch [ 12572772 ]
        Ted Ross added a comment -

        Commit 1454601

        Ted Ross added a comment - Commit 1454601
        Ted Ross made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.21 [ 12323549 ]
        Fix Version/s Future [ 12315490 ]
        Resolution Fixed [ 1 ]
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 2h 11m 1 Ted Ross 08/Mar/13 22:08
        Resolved Resolved Closed Closed
        142d 20h 57m 1 Justin Ross 29/Jul/13 19:05


          • Assignee:
            Ted Ross
            Ted Ross
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: