About half an year ago I looked for a solution to calculate the current
bandwidth served at any given time. I thought of using the logs to get this
information, but log lines are written only after a complete object was
served.  In the mailing list thread I opened back then, Conan posted a
plugin he wrote that show the bytes served for each host via a HTTP
interface and suggested me to take a look at it.

The problem is that the bytes served for each host are increased only after
a complete object is served, just like what I can do with the log-analyzing
solution.

This situation is causing spikes and bounces when analyzing the data from
this plugin in small intervals.

(The plugin is available in JIRA in
TS-1596<https://issues.apache.org/jira/browse/TS-1596%E2%80%8E>and on
Github <https://github.com/wkl/channel_stats>.)

My question is whether there's any way to solve this so that counters would
be updated regularly and not only when completing the file download.


Also, on another note, is there any known issues in the "*read-while-write*"
option?  It seems not to work. I'm downloading a large file via a number of
different requests and only after the first request is completed, the
others are served too.

Thanks,
Ron

Reply via email to