Open otisg opened 8 years ago
To limit the rate from files via tail-forever we would need to get this issue solved: https://github.com/mingqi/tailF/issues/8
--maxInputRate 10mb can be used by any logagent "plugin", currently only implemented for input from stdin.
This module seems to be interesting, as it exposes streams for tailed files: https://www.npmjs.com/package/safe-log-reader - to be tested ...
If input (e.g. log file) volume goes crazy (e.g. due to a bug) Logagent will of course try to read the input and ship the data as fast as it can. That could have a negative impact on network, CPU, etc. Maybe now, when working on #28 it makes sense to think about throttling because it probably makes the most sense for throttling to happens as close to input as possible (e.g., don't even read data from input is specified max input bytes per second limit has been reached).