You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by sh...@apache.org on 2024/04/30 23:54:01 UTC

(bookkeeper) branch master updated: BP-66: support throttling for zookeeper read during rereplication (#4258)

This is an automated email from the ASF dual-hosted git repository.

shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new c2defe2538 BP-66: support throttling for zookeeper read during rereplication (#4258)
c2defe2538 is described below

commit c2defe2538de4ce88708eddcdc5f7fda8e5b499f
Author: Wenzhi Feng <52...@users.noreply.github.com>
AuthorDate: Wed May 1 07:53:55 2024 +0800

    BP-66: support throttling for zookeeper read during rereplication (#4258)
    
    Signed-off-by: ZhangJian He <sh...@gmail.com>
    Co-authored-by: ZhangJian He <sh...@gmail.com>
---
 ...ling-for-zookeeper-read-during-rereplication.md | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/site3/website/src/pages/bps/BP-66-support-throttling-for-zookeeper-read-during-rereplication.md b/site3/website/src/pages/bps/BP-66-support-throttling-for-zookeeper-read-during-rereplication.md
new file mode 100644
index 0000000000..efeba43b14
--- /dev/null
+++ b/site3/website/src/pages/bps/BP-66-support-throttling-for-zookeeper-read-during-rereplication.md
@@ -0,0 +1,33 @@
+# BP-66: support throttling for zookeeper read during rereplication
+
+### Motivation
+
+Each time the cluster triggers the re-replication, all replicators will read data from zookeeper. This can cause a great
+pressure on Zookeeper. We need to support throttling for zookeeper read of re-replication.
+
+For example, in a Pulsar cluster, we enable auto-recovery for every bookie. There are 400 bookies in a cluster, which
+means there are 400 replicators in the cluster.
+And there are about 3000 ledgers in each bookie, 1/3 of them are small ledgers, whose size is less than 0.1MB, that is
+1000 small ledgers in each bookie.
+If one bookie is decommissioned, the read latency of zookeeper will increase to minutes.
+
+### Configuration
+
+add the following configuration:
+
+```
+zkReplicationTaskRateLimit
+```
+
+default value is 0, which means no limit.
+Value greater than 0 will enable the rate limit, and the value is the number of tasks that can be acquired per second.
+Decimals are allowed too, for example, 0.5 means 1 task every 2 seconds, 1 means 1 task per second, 2 means 2 tasks per
+second, and so on.
+
+### Proposed Changes
+
+Add a new configuration `zkReplicationTaskRateLimit` to control the rate of zookeeper read of re-replication.
+
+### Compatibility, Deprecation, and Migration Plan
+
+Full compatibility with the existing behavior. No deprecation needed.