MINOR: update the reassign-partition script results in docs#11845
MINOR: update the reassign-partition script results in docs#11845showuon wants to merge 1 commit intoapache:trunkfrom
Conversation
| "partitions":[{"topic":"foo1","partition":2,"replicas":[1,2]}, | ||
| {"topic":"foo1","partition":0,"replicas":[3,4]}, | ||
| {"topic":"foo2","partition":2,"replicas":[1,2]}, | ||
| {"topic":"foo2","partition":0,"replicas":[3,4]}, | ||
| {"topic":"foo1","partition":1,"replicas":[2,3]}, | ||
| {"topic":"foo2","partition":1,"replicas":[2,3]}] | ||
| "partitions":[{"topic":"foo1","partition":0,"replicas":[2,1]}, | ||
| {"topic":"foo1","partition":1,"replicas":[1,3]}, | ||
| {"topic":"foo1","partition":2,"replicas":[3,4]}, | ||
| {"topic":"foo2","partition":0,"replicas":[4,2]}, | ||
| {"topic":"foo2","partition":1,"replicas":[2,1]}, | ||
| {"topic":"foo2","partition":2,"replicas":[1,3]}] |
There was a problem hiding this comment.
Update the current partition replica assignment with the one in my local env, which has preferred partition leader evenly distributed across all brokers.
| "partitions":[{"topic":"foo1","partition":2,"replicas":[5,6]}, | ||
| {"topic":"foo1","partition":0,"replicas":[5,6]}, | ||
| {"topic":"foo2","partition":2,"replicas":[5,6]}, | ||
| {"topic":"foo2","partition":0,"replicas":[5,6]}, | ||
| "partitions":[{"topic":"foo1","partition":0,"replicas":[6,5]}, | ||
| {"topic":"foo1","partition":1,"replicas":[5,6]}, | ||
| {"topic":"foo2","partition":1,"replicas":[5,6]}] | ||
| {"topic":"foo1","partition":2,"replicas":[6,5]}, | ||
| {"topic":"foo2","partition":0,"replicas":[5,6]}, | ||
| {"topic":"foo2","partition":1,"replicas":[6,5]}, | ||
| {"topic":"foo2","partition":2,"replicas":[5,6]}] |
There was a problem hiding this comment.
Updated the proposed reassignment with current script result, having the preferred partition leader evenly distributed.
| {"topic":"foo1","partition":1,"replicas":[5,6]}, | ||
| {"topic":"foo2","partition":1,"replicas":[5,6]}] | ||
| }</code></pre> | ||
| Successfully started partition reassignments for foo1-0,foo1-1,foo1-2,foo2-0,foo2-1,foo2-2 |
There was a problem hiding this comment.
We only show Successfully started partition reassignments for... in current script. Update it.
| Reassignment of partition [foo1,0] completed successfully | ||
| Reassignment of partition [foo1,1] is in progress | ||
| Reassignment of partition [foo1,2] is in progress | ||
| Reassignment of partition [foo2,0] completed successfully | ||
| Reassignment of partition [foo2,1] completed successfully | ||
| Reassignment of partition [foo2,2] completed successfully</code></pre> | ||
| Reassignment of partition [foo1,0] is completed | ||
| Reassignment of partition [foo1,1] is still in progress | ||
| Reassignment of partition [foo1,2] is still in progress | ||
| Reassignment of partition [foo2,0] is completed | ||
| Reassignment of partition [foo2,1] is completed | ||
| Reassignment of partition [foo2,2] is completed</code></pre> |
There was a problem hiding this comment.
Change the verify result with current script version
| <h4 class="anchor-heading"><a id="basic_ops_decommissioning_brokers" class="anchor-link"></a><a href="#basic_ops_decommissioning_brokers">Decommissioning brokers</a></h4> | ||
| The partition reassignment tool does not have the ability to automatically generate a reassignment plan for decommissioning brokers yet. As such, the admin has to come up with a reassignment plan to move the replica for all partitions hosted on the broker to be decommissioned, to the rest of the brokers. This can be relatively tedious as the reassignment needs to ensure that all the replicas are not moved from the decommissioned broker to only one other broker. To make this process effortless, we plan to add tooling support for decommissioning brokers in the future. |
There was a problem hiding this comment.
Remove decommissioning brokers section
| <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> |
There was a problem hiding this comment.
We should add --additional argument in the script to change the throttle value.
|
@hachikuji @cmccabe , please take a look. Thanks. |
|
@hachikuji @cmccabe , please take a look. Thanks. |
1 similar comment
|
@hachikuji @cmccabe , please take a look. Thanks. |
|
@hachikuji @dajac , please take a look when available. Thanks. |
|
@hachikuji @dajac , please take a look. Thank you. |
|
Addressed in #12237 |
When reading
decommissioning brokerssection in document, it makes me confused:We should be able to auto generate a reassignment plan for decommissioning brokers via
--generateargumentWe already can move the replicas evenly across all the brokers
This section is written in 2015, and I don't think we still have plan to support it (or we already supported)
Remove the section.
--generatereplicas plan with current version.Also, the example in the

--generatecommand, it assign all the partition preferred leader to the same one (broker 5), which will confuse users to think this tool is unreliable. After running a test, I confirmed we can generate a plan evenly assigning the replicas across the brokers. Update it.Update the
throttleupdated command by adding--additionalAfter KIP-455 and this PR, we have to provide
--additionalflag to allow change the throttle config.Update the reassign-partition script output with current version
Committer Checklist (excluded from commit message)