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

rxl pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit b64e02a0939fbcb7056a04d68cee04377a8af743
Author: HuanliMeng <48120384+huanli-m...@users.noreply.github.com>
AuthorDate: Mon Jun 29 12:10:13 2020 +0800

    update for pr:Restore clusterDispatchRate policy for compatibility (#7380)
    
    
    (cherry picked from commit 717deb85b88d080c4c629920bff5a0104906b9f4)
---
 site2/docs/admin-api-namespaces.md | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/site2/docs/admin-api-namespaces.md 
b/site2/docs/admin-api-namespaces.md
index 7cd0c1d..0d19e7e 100644
--- a/site2/docs/admin-api-namespaces.md
+++ b/site2/docs/admin-api-namespaces.md
@@ -554,11 +554,18 @@ admin.namespaces().getRetention(namespace)
 
 #### set dispatch throttling
 
-It sets message dispatch rate for all the topics under a given namespace.
+It sets message dispatch rate for all the topics under a given namespace. 
 Dispatch rate can be restricted by number of message per X seconds 
(`msg-dispatch-rate`) or by number of message-bytes per X second 
(`byte-dispatch-rate`).
 dispatch rate is in second and it can be configured with 
`dispatch-rate-period`. Default value of `msg-dispatch-rate` and 
`byte-dispatch-rate` is -1 which
 disables the throttling.
 
+#### Note
+> - If neither `clusterDispatchRate` nor `topicDispatchRate` is configured, 
dispatch throttling is disabled.
+> >
+> - If `topicDispatchRate` is not configured, `clusterDispatchRate` takes 
effect.
+> > 
+> - If `topicDispatchRate` is configured, `topicDispatchRate` takes effect.
+
 ###### CLI
 
 ```
@@ -669,7 +676,7 @@ $ pulsar-admin namespaces get-subscription-dispatch-rate 
test-tenant/ns1
 admin.namespaces().getSubscriptionDispatchRate(namespace)
 ```
 
-#### set dispatch throttling for subscription
+#### set dispatch throttling for replicator
 
 It sets message dispatch rate for all the replicator between replication 
clusters under a given namespace.
 Dispatch rate can be restricted by number of message per X seconds 
(`msg-dispatch-rate`) or by number of message-bytes per X second 
(`byte-dispatch-rate`).

Reply via email to