GitHub user wangli1426 opened a pull request:

    https://github.com/apache/storm/pull/716

    [STORM-1007] Added tuple arrival rate and tuple sojourn time to QueueMetrics

    I added two important metrics, namely *arrival time* and *sojourn time*, to 
QueueMetrics. 
    
    Modification Summary:
    1. Created a new RateTracker utility, which could report instantaneous rate 
upon certain event;
    2. Added test cases for RateTracker;
    3. Added arrival rate and sojourn time metrics to QueueMetrics; 
    4. Use sampling in QueueMetrics to reduce the metric maintenance cost. 
    
    Such metrics are very useful to performance tuning, especially for 
application with strong constraint on processing latency such as thread 
detection and smart traffic. A high sojourn time, for example, indicates that a 
higher degree of parallelism should be applied to the current bolt in order to 
reduce processing delay. 
    
    Any comment or suggestion regarding to this pull request is welcomed. 
    
    Thanks.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangli1426/storm queue-metrics

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/716.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #716
    
----
commit 3d0e79e56089023a0b731fc2f4f66f24cd3264e1
Author: wangli1426 <[email protected]>
Date:   2015-08-26T09:40:34Z

    Added arrival_rate metric to DisruptorQueue.

commit 9cd94bb865c527fb8f5c6728670f97cb9073e0f8
Author: Li Wang <[email protected]>
Date:   2015-09-03T07:57:15Z

    Added Tests for RateTracker

commit fbf85db2f152440fffebd432f3106ddfdf1a848d
Author: Li Wang <[email protected]>
Date:   2015-09-03T07:58:24Z

    Added sampling feature to QueueMetrics to reduce the costs.

commit d026c49c594fdcbbb2665c116b1446798400b0bf
Author: wangli1426 <[email protected]>
Date:   2015-09-03T11:51:51Z

    Added element sojourn time, a new metric, to QueueMetrics.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to