Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CABA913A for ; Fri, 22 Feb 2013 17:26:13 +0000 (UTC) Received: (qmail 16333 invoked by uid 500); 22 Feb 2013 17:26:13 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 16298 invoked by uid 500); 22 Feb 2013 17:26:13 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 16289 invoked by uid 99); 22 Feb 2013 17:26:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 17:26:13 +0000 Date: Fri, 22 Feb 2013 17:26:13 +0000 (UTC) From: "Guozhang Wang (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-762) Improve second replica assignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584461#comment-13584461 ] Guozhang Wang commented on KAFKA-762: ------------------------------------- I think that as long as the secondShift is different for two partition, even if their first replica is assigned to the same broker their following replicas would not be possibly assigned to the same broker? > Improve second replica assignment > --------------------------------- > > Key: KAFKA-762 > URL: https://issues.apache.org/jira/browse/KAFKA-762 > Project: Kafka > Issue Type: Improvement > Components: core > Affects Versions: 0.8 > Reporter: Jun Rao > Assignee: Jun Rao > Priority: Blocker > Labels: p2 > Fix For: 0.8 > > Attachments: kafka-762_v1.patch > > > Currently, for partitions from different topics, if the first replica is assigned to the same broker, their second replica is also assigned to the same broker. This means that when a broker fails, many leaders on the failed broker will be moved to the same broker, and thus introduces more load on that broker. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira