• A
    rate limit auto-tuning · 1026e794
    Andrew Kryczka 提交于
    Summary:
    Dynamic adjustment of rate limit according to demand for background I/O. It increases by a factor when limiter is drained too frequently, and decreases by the same factor when limiter is not drained frequently enough. The parameters for this behavior are fixed in `GenericRateLimiter::Tune`. Other changes:
    
    - make rate limiter's `Env*` configurable for testing
    - track num drain intervals in RateLimiter so we don't have to rely on stats, which may be shared across different DB instances from the ones that share the RateLimiter.
    Closes https://github.com/facebook/rocksdb/pull/2899
    
    Differential Revision: D5858704
    
    Pulled By: ajkr
    
    fbshipit-source-id: cc2bac30f85e7f6fd63655d0a6732ef9ed7403b1
    1026e794
Makefile 61.6 KB