[improve][broker] PIP-444: Rate limit for deleting ledger to alleviate the zk pressure. - #24760
Conversation
|
We do have batch operation to the metadata service. If the deletion option happened concurrently, it should be already batched in one request? |
I am afraid that there is no batch feature for |
ti Please enter the commit message for your changes. Lines starting
|
I think @codelipenghui mentioned this feature: #13043, while But from my perspective, the batching feature seems to be enabled by default, so I don't think it can resolve the issue mentioned in PIP-444 |
Only when the zk request is issued by broker can this feature takes effect and batch them to alleviate the zk pressure. However, in this case, the zk requests are sent by the bookie client. Therefore, I'm afraid feature #13043 cannot help resolve this issue. |
managedLedgerDeleteThreadPoolSize.
|
Please update the original document #24771 as well, then you can start the vote |
Updated, and here is the link to the vote thread: https://lists.apache.org/thread/2dop6kyvrpt6ztz9pvylyl8o2syvh9kw. |
PIP: #24771
Motivation
When the retention of a large topic is reduced, a significant number of ledgers need to be deleted. Since this deletion operation is not rate-limited, it results in ZooKeeper (ZK) latency of several minutes, as shown below:

Modifications
Add rate limit feature for deleting ledgers.
Verifying this change
(Please pick either of the following options)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: thetumbled#75