Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 24504 invoked from network); 8 Feb 2010 00:59:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2010 00:59:51 -0000 Received: (qmail 29846 invoked by uid 500); 8 Feb 2010 00:59:51 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 29809 invoked by uid 500); 8 Feb 2010 00:59:51 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 29799 invoked by uid 99); 8 Feb 2010 00:59:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 00:59:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 00:59:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21B65234C045 for ; Sun, 7 Feb 2010 16:59:28 -0800 (PST) Message-ID: <1130153612.111891265590768123.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Feb 2010 00:59:28 +0000 (UTC) From: "Stu Hood (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Updated: (CASSANDRA-762) Load balancing does not account for the load of the moving node In-Reply-To: <1648441837.17681265239287860.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stu Hood updated CASSANDRA-762: ------------------------------- Attachment: for-0.5-0001-Wait-BROADCAST_INTERVAL-for-load-information-and-cal.patch Here is a rebased copy of the patch for 0.5. Because 0.5 is still stat'ing files, it doesn't lower the BROADCAST_INTERVAL, although we may want to. > Load balancing does not account for the load of the moving node > --------------------------------------------------------------- > > Key: CASSANDRA-762 > URL: https://issues.apache.org/jira/browse/CASSANDRA-762 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.5, 0.6 > Reporter: Stu Hood > Assignee: Stu Hood > Priority: Minor > Fix For: 0.5, 0.6 > > Attachments: 0001-Wait-BROADCAST_INTERVAL-for-load-information-and-cal.patch, for-0.5-0001-Wait-BROADCAST_INTERVAL-for-load-information-and-cal.patch > > > Given a node A (with load 10 gb) and a node B (with load 20 gb), running the loadbalance command against node A will: > 1. Remove node A from the ring > * Recalculates pending ranges so that node B is responsible for the entire ring > 2. Pick the most loaded node > * node B is still reporting 20 gb load, because that is all it has locally > 3. Choose a token that divides the range of the most loaded node in half > Since the token calculation doesn't take into account the load that node B is 'inheriting' from node A, the token will divide node B's load in half and swap the loads. Instead, the token calculation needs to pretend that B has already inherited the 10 gb from node A, for a total of 30 gb. The token that should be chosen falls at 15 gb of the total load, or 5 gb into node B's load. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.