Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D28D6D8AA for ; Tue, 28 Aug 2012 15:39:45 +0000 (UTC) Received: (qmail 83715 invoked by uid 500); 28 Aug 2012 15:39:43 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 83690 invoked by uid 500); 28 Aug 2012 15:39:43 -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 83682 invoked by uid 99); 28 Aug 2012 15:39:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2012 15:39:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of synfinatic@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2012 15:39:39 +0000 Received: by obbwc20 with SMTP id wc20so12228572obb.31 for ; Tue, 28 Aug 2012 08:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=doHVi1mRvT8d+UAupoNx2m3kZLAlGaT6yh2eVxb6KIA=; b=KVSkJtjC9R2Qi6xM/jBmp0lSKop8dIzbzvPvaCJYpYuZTVQYqg/UY0u5AzJderhRZ6 yo4VMTTq8dOmsBggtEaKr6LtdrSHlul0SZCaVJaro5sbzXdF0mgN082Z5zc4XB02KmHw VUOI5Z6rKASzsoQYHwfI+tpeYyYPFkhvuMqPGMqJKrBmB0WNblHT44e64lwn26rOGSyx C2boGaHrKFn+quvlVDJ9baiYbNERWDZlET1jPuOW643sDQ9S/MPN05ayeLwpEZcvum+N asRk82Dm7ARTbfX4w20sbBMlLuw1d56rpPK3CvHlQWeuRq6go4un3duwtW1eILNlqJEY M1oA== Received: by 10.60.29.230 with SMTP id n6mr13185513oeh.123.1346168358166; Tue, 28 Aug 2012 08:39:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.192.10 with HTTP; Tue, 28 Aug 2012 08:38:57 -0700 (PDT) In-Reply-To: References: <503C0853.2080505@globalrelay.net> From: Aaron Turner Date: Tue, 28 Aug 2012 08:38:57 -0700 Message-ID: Subject: Re: Automating nodetool repair To: user@cassandra.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Funny you mention that... i just was hearing on #cassandra this morning that it repairs the replica set by default. I was thinking of repairing every 3rd node (RF=3D3), but running -pr seems "cleaner". Do you know if this (repairing a replica vs node) was introduced in 1.0 or = 1.1? On Tue, Aug 28, 2012 at 7:03 AM, Edward Capriolo wr= ote: > You can consider adding -pr. When iterating through all your hosts > like this. -pr means primary range, and will do less duplicated work. > > On Mon, Aug 27, 2012 at 8:05 PM, Aaron Turner wrot= e: >> I use cron. On one box I just do: >> >> for n in node1 node2 node3 node4 ; do >> nodetool -h $n repair >> sleep 120 >> done >> >> A lot easier then managing a bunch of individual crontabs IMHO >> although I suppose I could of done it with puppet, but then you always >> have to keep an eye out that your repairs don't overlap over time. >> >> On Mon, Aug 27, 2012 at 4:52 PM, Edward Sargisson >> wrote: >>> Hi all, >>> So nodetool repair has to be run regularly on all nodes. Does anybody h= ave >>> any interesting strategies or tools for doing this or is everybody just >>> setting up cron to do it? >>> >>> For example, one could write some Puppet code to splay the cron times a= round >>> so that only one should be running at once. >>> Or, perhaps, a central orchestrator that is given some known quiet time= and >>> works its way through the list, running nodetool repair one at a time (= using >>> RPC?) until it runs out of time. >>> >>> Cheers, >>> Edward >>> -- >>> >>> Edward Sargisson >>> >>> senior java developer >>> Global Relay >>> >>> edward.sargisson@globalrelay.net >>> >>> >>> 866.484.6630 >>> New York | Chicago | Vancouver | London (+44.0800.032.9829) | Sing= apore >>> (+65.3158.1301) >>> >>> Global Relay Archive supports email, instant messaging, BlackBerry, >>> Bloomberg, Thomson Reuters, Pivot, YellowJacket, LinkedIn, Twitter, Fac= ebook >>> and more. >>> >>> >>> Ask about Global Relay Message =97 The Future of Collaboration in the >>> Financial Services World >>> >>> >>> All email sent to or from this address will be retained by Global Relay= =92s >>> email archiving system. This message is intended only for the use of th= e >>> individual or entity to which it is addressed, and may contain informat= ion >>> that is privileged, confidential, and exempt from disclosure under >>> applicable law. Global Relay will not be liable for any compliance or >>> technical information provided herein. All trademarks are the property= of >>> their respective owners. >> >> >> >> -- >> Aaron Turner >> http://synfin.net/ Twitter: @synfinatic >> http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & = Windows >> Those who would give up essential Liberty, to purchase a little temporar= y >> Safety, deserve neither Liberty nor Safety. >> -- Benjamin Franklin >> "carpe diem quam minimum credula postero" --=20 Aaron Turner http://synfin.net/ Twitter: @synfinatic http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Win= dows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin "carpe diem quam minimum credula postero"