Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 29996 invoked from network); 5 Oct 2009 16:19:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Oct 2009 16:19:19 -0000 Received: (qmail 5773 invoked by uid 500); 5 Oct 2009 16:19:18 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 5756 invoked by uid 500); 5 Oct 2009 16:19:18 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 5747 invoked by uid 99); 5 Oct 2009 16:19:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2009 16:19:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.219.205 as permitted sender) Received: from [209.85.219.205] (HELO mail-ew0-f205.google.com) (209.85.219.205) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2009 16:19:09 +0000 Received: by ewy1 with SMTP id 1so2419147ewy.34 for ; Mon, 05 Oct 2009 09:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wVjpNUK6SceLcyHfVqgdpExuW8jUweVQ+GVbfLnKLFM=; b=u2KAZCpWOfnr0/qtl/3dXAL/6UA1rlSK0eQKziE/NNMvo2RQZYyKg6flpwRg8M9XCV Ay3Uf01up53TvcxTgDQ/q9XZvdUqyioHbifKSS+GoCp6V2KGHqdbNev/si9SASDsQCRZ agGzjXMgWU7SBBdp6W0HolJDtdN0ZagBcVprs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=g9/mgZimWTAOcLfGVro0zqOUNvfOZb3Oe7oGVtRdQmsTsduRI0lg9iPamMDUtm1QDF 301SDkgIedf2TF2QDPs7I8kj0BMUaKRKXYzGnANEnCY9uexKxi2hOWsKZnJVGdcBWRaB 5Gc5mWvmS7MzRb7t2dWMUxf71EKMGfo2jfwhk= MIME-Version: 1.0 Received: by 10.216.23.10 with SMTP id u10mr49474weu.29.1254759468471; Mon, 05 Oct 2009 09:17:48 -0700 (PDT) In-Reply-To: <20091005161048.GA45561@alumni.caltech.edu> References: <20091005161048.GA45561@alumni.caltech.edu> Date: Mon, 5 Oct 2009 11:17:48 -0500 Message-ID: Subject: Re: backing up data from cassandra From: Jonathan Ellis To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Oct 5, 2009 at 11:10 AM, Anthony Molinaro wrote: > I assume the server also needs to be stopped while your are swapping > files, but what about if you have a cluster of several servers and > need to restore. =A0Is the process to shutdown all the servers, move > the files and restart?=A0Or can you you do it one at a time. =A0(I assume > one at a time might mean a lot of read-repair work happening, so not > a good idea). Right, you could end up with newer data mixed in with your backed up version which is probably not what you want. > Also, is it best to flush_binary (which I think flushes in memory > tables to disk), and compact prior to snapshotting? flush_binary only acts on the binary memtables. I wrote earlier: >> note that the 0.4 branch, which will become 0.4.1, automatically >> flushes each columnfamily when you ask for a snapshot of the table, so >> you don't have to do that manually anymore. Compaction isn't necessary and would slow down snapshotting considerably. -Jonathan