You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/06/22 11:42:10 UTC

[GitHub] [pulsar] Jason918 commented on issue #7723: Throttle the ledger rollover

Jason918 commented on issue #7723:
URL: https://github.com/apache/pulsar/issues/7723#issuecomment-865911237


   @codelipenghui HI, I'll be happy to participate. 
   Please check this more detailed solution.
   Add a new parameter `managedLedgerRolloverRateLimit`, rate limit the amount of rollover per second in one broker. This parameter can be set as 0 by default meaning no rate limiting .
   
   As `ManagedLedgerImpl#currentLedgerIsFull` is called before each ledger rollover, we can add a global rate limiter after that. Every ledger rollover can only happen when `currentLedgerIsFull()` and `rolloverRatelimiter.tryAcquire()` both return true.
   


-- 
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:
users@infra.apache.org