bneradt opened a new pull request #7279: URL: https://github.com/apache/trafficserver/pull/7279
Some messages get excessively noisy under high traffic conditions if something about their mechanism goes wrong. The pipe logging feature, for instance, will emit warning and error messages on every single log event if the reader goes down or the pipe buffer fills up. This can result in thousands of log messages being emitted per second, which makes reading the logs difficult and causes disk space issues. This commit addresses this issue by adding throttled versions of the common logging messages so they only emit a message on some set interval (60 seconds as a default). The following functions are added: ThrottledStatus ThrottledNote ThrottledWarning ThrottledError These are implemented using a generic Throttler class which may also be useful in other applications where throttling is desired. --- This is a draft PR. The production PR will need to include at least the following: - Configurability of the throttling interval. - Documentation of these new log functions - An autest to verify basic throttling functionality. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
