showuon commented on a change in pull request #11845:
URL: https://github.com/apache/kafka/pull/11845#discussion_r819399684
##########
File path: docs/ops.html
##########
@@ -382,12 +368,11 @@ <h4 class="anchor-heading"><a id="rep-throttle"
class="anchor-link"></a><a href=
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="language-bash">$ bin/kafka-reassign-partitions.sh
--bootstrap-server localhost:9092 --execute --reassignment-json-file
bigger-cluster.json --throttle 50000000</code></pre>
When you execute this script you will see the throttle engage:
- <pre class="line-numbers"><code class="language-bash"> The throttle limit
was set to 50000000 B/s
- Successfully started reassignment of partitions.</code></pre>
+ <pre class="line-numbers"><code class="language-bash"> The inter-broker
throttle limit was set to 50000000 B/s
+ Successfully started partition reassignment for foo1-0.</code></pre>
<p>Should you wish to alter the throttle, during a rebalance, say to
increase the throughput so it completes quicker, you can do this by re-running
the execute command passing the same reassignment-json-file:</p>
- <pre class="language-bash">$ bin/kafka-reassign-partitions.sh
--bootstrap-server localhost:9092 --execute --reassignment-json-file
bigger-cluster.json --throttle 700000000
- There is an existing assignment running.
- The throttle limit was set to 700000000 B/s</code></pre>
+ <pre class="language-bash">$ bin/kafka-reassign-partitions.sh
--bootstrap-server localhost:9092 --execute --reassignment-json-file
bigger-cluster.json --additional --throttle 700000000
+ The inter-broker throttle limit was set to 700000000 B/s</code></pre>
Review comment:
We should add `--additional` argument in the script to change the
throttle value.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]