Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 96732 invoked from network); 21 Apr 2010 18:48:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Apr 2010 18:48:58 -0000 Received: (qmail 4347 invoked by uid 500); 21 Apr 2010 18:48:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 4325 invoked by uid 500); 21 Apr 2010 18:48:56 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 4317 invoked by uid 99); 21 Apr 2010 18:48:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 18:48:56 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [131.215.239.119] (HELO mail.alumni.caltech.edu) (131.215.239.119) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 18:48:49 +0000 Received: from localhost (dsl081-082-089.lax1.dsl.speakeasy.net [64.81.82.89]) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 241CB3F0C4C; Wed, 21 Apr 2010 11:48:15 -0700 (PDT) X-DKIM: Sendmail DKIM Filter v2.8.2 mail.alumni.caltech.edu 241CB3F0C4C DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alumni.caltech.edu; s=enforce; t=1271875695; bh=Qg5zRIkRNG5Sbr+/jf5h/mbjQMOUe+UYanWaBVx8ehg=; h=Date:From:To:Subject:Message-ID:References:Mime-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=d7yXAFdjPDJas+9I8DPGTBDnqwunPVXaWVO2JMmCJpYbpGtaDYT7JoKXj6pwOlAAJ R6y6h5VXjrv0gVKGstAD3KUABfBBY4DprwjmKRGUprrN5DBvq5bLQ0sGfLOgarkWd2 8L1ilRtk0GK0Qhzy9uIM+xneid+zr/ZZAIeaEV+I= Date: Wed, 21 Apr 2010 11:48:14 -0700 From: Anthony Molinaro To: user@cassandra.apache.org Subject: Re: Clarification on Ring operations in Cassandra 0.5.1 Message-ID: <20100421184814.GF39306@alumni.caltech.edu> Mail-Followup-To: user@cassandra.apache.org References: <20100415231044.GA8977@alumni.caltech.edu> <20100419234823.GC30486@alumni.caltech.edu> <20100421160244.GA39306@alumni.caltech.edu> <20100421163156.GB39306@alumni.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i X-MailScanner-Information-Alumni: X-Alumni-MailScanner-ID: 241CB3F0C4C.AC8D3 X-MailScanner-Alumni: No Virii found X-Spam-Status-Alumni: not spam, SpamAssassin (not cached, score=-3.268, required 5, ALL_TRUSTED -1.80, BAYES_00 -2.60, DNS_FROM_OPENWHOIS 1.13, FH_DATE_PAST_20XX 0.00) X-MailScanner-From: anthonym@alumni.caltech.edu X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Apr 21, 2010 at 12:05:07PM -0500, Jonathan Ellis wrote: > On Wed, Apr 21, 2010 at 11:31 AM, Anthony Molinaro > wrote: > > > > On Wed, Apr 21, 2010 at 11:08:19AM -0500, Jonathan Ellis wrote: > >> Yes, that looks right, where "token really close" means "slightly less > >> than" (more than would move it into a different node's range). > > > > Is it better to go slightly less than (say Token - 1), or slightly more than > > the beginning of the range (PreviousTokenInRing + 1). �I was assuming the > > latter in my earlier email, but you seem to be suggesting the former? > > Right, the former. So why is Token - 1 better? Doesn't that result in more data movement than PreviousTokenInRing + 1? > > Right, I was mostly wondering if I could speed things up by scping the > > sstables while the system was running (since they shouldn't be changing). > > Then in quick succession removetoken and bootstrap with the old token. > > Probably grasping at straws here :b > > Nope, bootstrap ignores any local data. > > You could use scp-then-repair if you can tolerate slightly out of date > data being served by the new machine until the repair finishes. So with scp-then-repair, what would my config look like? Would I specify the InitialToken as the same as the old token, but have AutoBootstrap set to false? I guess this is interesting to me because I could do something where I migrate my data on a running server to an attached ebs, then after it's synced, detach and re-attach to the new machine. Anyway, thanks for discussing the possibilities, -Anthony -- ------------------------------------------------------------------------ Anthony Molinaro