Kafka
  1. Kafka
  2. KAFKA-1300

Added WaitForReplaction admin tool.

    Details

    • Type: New Feature New Feature
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: tools
    • Labels:
    • Environment:
      Ubuntu 12.04

      Description

      I have created a tool similar to the broker shutdown tool for doing rolling restarts of Kafka clusters.

      The tool watches the max replica lag of the specified broker, and waits until the lag drops to 0 before exiting.

      To do a rolling restart, here's the process we use:

      for (broker <- brokers)

      { run shutdown tool for broker terminate broker start new broker run wait for replication tool on new broker }

      Here's an example command line use:

      ./kafka-run-class.sh kafka.admin.WaitForReplication --zookeeper zk.host.com:2181 --num.retries 100 --retry.interval.ms 60000 --broker 0

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Brenden Matthews
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:

                Development