nickva opened a new pull request, #5646: URL: https://github.com/apache/couchdb/pull/5646
Previously, scanner applied db, shard and doc open rate limits. However, plugins may want to also perform updates and still ensure they always stay in the background and only consume a limited amount of resources in a cluster. For that add a `doc_write` rate limit option. Plugins which perform write can use the ``couch_scanner_rate_limiter`` explicitly: initialize, then consume tokens from it during every update (possibly indicated they used more than one token in a single operation) and then sleep the recommended amount of time provided the rate limiter. Added a simple example of how it could work in the couch_scanner_rate_limiter module in the comments at the top. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
