From cf1bf8001d426c41143436cb578dc64d67d1ca0f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 3 Sep 2021 12:23:41 -0700 Subject: kafka re-balancing tweaks --- kafka/howto_rebalance.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kafka') diff --git a/kafka/howto_rebalance.md b/kafka/howto_rebalance.md index d68b205..093740a 100644 --- a/kafka/howto_rebalance.md +++ b/kafka/howto_rebalance.md @@ -27,7 +27,8 @@ On a kafka broker, go to `/srv/kafka-broker/kafka-*/bin`, generate a plan, then inspect the output: ./kafka-reassign-partitions.sh --zookeeper localhost:2181 --broker-list "280,281,284,285,263" --topics-to-move-json-file /tmp/topics_to_move.json --generate > /tmp/reassignment-plan.json - cat /tmp/reassignment-plan.json | rg '^\{' | tail -n1 > /tmp/new-plan.json + cat /tmp/reassignment-plan.json | rg '^\{' | head -n1 | jq . > /tmp/old-plan.json + cat /tmp/reassignment-plan.json | rg '^\{' | tail -n1 | jq . > /tmp/new-plan.json cat /tmp/reassignment-plan.json | rg '^\{' | jq . If that looks good, start the rebalance: -- cgit v1.2.3