Skip to content

Topicmappr Usage Guide

Jamie Alquiza edited this page Nov 13, 2018 · 8 revisions

Topicmappr has two primary commands: rebuild and rebalance.

$ topicmappr -h
Usage:
  topicmappr [command]

Available Commands:
  help        Help about any command
  rebalance   [BETA] Rebalance partition allotments among a set of topics and brokers
  rebuild     Rebuild a partition map for one or more topics

Flags:
  -h, --help               help for topicmappr
      --zk-addr string     ZooKeeper connect string (for broker metadata or rebuild-topic lookups) (default "localhost:2181")
      --zk-prefix string   ZooKeeper namespace prefix (for Kafka brokers)

Use "topicmappr [command] --help" for more information about a command.

Rebuild

Docs

rebuild is used for:

  • replacing brokers
  • removing brokers
  • adding brokers
  • building optimized shard placements from scratch (by partition count or by storage bin-packing)

Rebalance

Docs

In contrast to storage rebalancing in rebuild (which requires that 100% of partitions for a targeted topic are relocated), rebalance is used for partial partition rebalancing from most to least storage utilized brokers.

Clone this wiki locally