Skip to content
  • Andrew Kryczka's avatar
    Statistic for how often rate limiter is drained · 7c80a6d7
    Andrew Kryczka authored
    Summary:
    This is the metric I plan to use for adaptive rate limiting. The statistics are updated only if the rate limiter is drained by flush or compaction. I believe (but am not certain) that this is the normal case.
    
    The Statistics object is passed in RateLimiter::Request() to avoid requiring changes to client code, which would've been necessary if we passed it in the RateLimiter constructor.
    Closes https://github.com/facebook/rocksdb/pull/1946
    
    Differential Revision: D4646489
    
    Pulled By: ajkr
    
    fbshipit-source-id: d8e0161
    7c80a6d7