Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1215

Rack-Aware replica assignment option

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.10.0.0
    • Component/s: replication
    • Labels:
      None

      Description

      Adding a rack-id to kafka config. This rack-id can be used during replica assignment by using the max-rack-replication argument in the admin scripts (create topic, etc.). By default the original replication assignment algorithm is used because max-rack-replication defaults to -1. max-rack-replication > -1 is not honored if you are doing manual replica assignment (preffered).

      If this looks good I can add some test cases specific to the rack-aware assignment.

      I can also port this to trunk. We are currently running 0.8.0 in production and need this, so i wrote the patch against that.

        Attachments

        1. rack_aware_replica_assignment_v1.patch
          46 kB
          Joris Van Remoortere
        2. rack_aware_replica_assignment_v2.patch
          44 kB
          Joris Van Remoortere

          Issue Links

            Activity

              People

              • Assignee:
                allenxwang Allen Wang
                Reporter:
                jvanremoortere Joris Van Remoortere
                Reviewer:
                Jun Rao
              • Votes:
                12 Vote for this issue
                Watchers:
                33 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: