mirror of https://github.com/apache/kafka.git
MINOR: Fix command examples in kafka-reassign-partitions.sh docs (#7583)
Reviewers: Jason Gustafson <jason@confluent.io>
This commit is contained in:
parent
4bde9bb3cc
commit
e4262471c9
|
|
@ -453,7 +453,7 @@
|
|||
There are two interfaces that can be used to engage a throttle. The simplest, and safest, is to apply a throttle when invoking the kafka-reassign-partitions.sh, but kafka-configs.sh can also be used to view and alter the throttle values directly.
|
||||
<p></p>
|
||||
So for example, if you were to execute a rebalance, with the below command, it would move partitions at no more than 50MB/s.
|
||||
<pre class="brush: bash;">$ bin/kafka-reassign-partitions.sh --zookeeper localhost:2181 --execute --reassignment-json-file bigger-cluster.json —throttle 50000000</pre>
|
||||
<pre class="brush: bash;">$ bin/kafka-reassign-partitions.sh --zookeeper localhost:2181 --execute --reassignment-json-file bigger-cluster.json --throttle 50000000</pre>
|
||||
When you execute this script you will see the throttle engage:
|
||||
<pre class="brush: bash;">
|
||||
The throttle limit was set to 50000000 B/s
|
||||
|
|
@ -526,8 +526,8 @@
|
|||
<p>Some care should be taken when using throttled replication. In particular:</p>
|
||||
|
||||
<p><i>(1) Throttle Removal:</i></p>
|
||||
The throttle should be removed in a timely manner once reassignment completes (by running kafka-reassign-partitions
|
||||
—verify).
|
||||
The throttle should be removed in a timely manner once reassignment completes (by running kafka-reassign-partitions.sh
|
||||
--verify).
|
||||
|
||||
<p><i>(2) Ensuring Progress:</i></p>
|
||||
<p>If the throttle is set too low, in comparison to the incoming write rate, it is possible for replication to not
|
||||
|
|
|
|||
Loading…
Reference in New Issue