Nikita Awasthi created CAMEL-23865:
--------------------------------------
Summary: LoadThroughput should use EWMA smoothing like LoadTriplet
instead of instantaneous delta
Key: CAMEL-23865
URL: https://issues.apache.org/jira/browse/CAMEL-23865
Project: Camel
Issue Type: Improvement
Components: camel-management
Reporter: Nikita Awasthi
The LoadThroughput class calculates throughput as an instantaneous rate over
the last 1-second sampling interval:
{code}
thp = (1000d / time) * delta;
{code}
This means for a route with a timer firing every 5 seconds, the throughput
oscillates between 0.00 (4 out of 5 samples) and 1.00 (1 out of 5 samples),
instead of showing the correct average of ~0.20 exchanges/second.
The LoadTriplet class (used for load01/load05/load15) already uses EWMA
(exponentially weighted moving average) modeled after Unix top load averages.
LoadThroughput should use the same approach to produce a smoothed, accurate
throughput value.
This affects the exchangesThroughput value in the status JSON file, dev
consoles, and JMX MBeans.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)