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 A60B191F5 for ; Thu, 14 Mar 2013 05:22:50 +0000 (UTC) Received: (qmail 38733 invoked by uid 500); 14 Mar 2013 05:22:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 38533 invoked by uid 500); 14 Mar 2013 05:22:47 -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 38489 invoked by uid 99); 14 Mar 2013 05:22:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 05:22:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a51.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 05:22:39 +0000 Received: from homiemail-a51.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTP id 0BA512E8062 for ; Wed, 13 Mar 2013 22:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=bE2sFLDe308FYstQyW0jFIH40eQ=; b=kKERFhZ3rV GVfRh+u9uMnekBhTsKbUg1jDlOeMnDdyhetexUiDKCXUvyF6ZAM83i6nOW8wjkyo BmRwM4nll3ER15KUh1cfkwmr7lF9khgMhpuap+JDYIgByhRv/U50w/1Gm5H2KQ8u Z7QZwpTV8p6rb+Wxmc5QZqYpp3JQc7Fy4= Received: from [192.168.168.142] (c-98-234-52-29.hsd1.ca.comcast.net [98.234.52.29]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTPSA id E45C22E8057 for ; Wed, 13 Mar 2013 22:22:17 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Best practices for nodes to come back From: aaron morton In-Reply-To: Date: Wed, 13 Mar 2013 22:22:17 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5568BDB7-D912-440A-8363-484511B61764@thelastpickle.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org If you node has been dead for less then gc_grace you can return it to = the cluster and run nodetool repair (without the -pr). Until repair has = completed will be getting inconsistent results, but if you have been = using ONE / ONE for all ops that is a possibility for everything.=20 If the node has been down for longer than gc_grace you cannot bring it = back. Remove it from another node using nodetool and bootstrap a new = node with the same token.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Consultant New Zealand @aaronmorton http://www.thelastpickle.com On 12/03/2013, at 3:02 AM, julien Campan = wrote: > Hi, >=20 > I have a question about the nodes coming back to the cluster after a = long interruption. >=20 > First of all, I explain my use case. I have a cluster that processes = many requests with consistency ONE and I wouldn=92t change it because of = an incident. Secondly, I don't want to return the old information from = this node. So, I want to avoid reading from this node until it gets = repaired. >=20 > After looking at documentation I see two possible solutions: >=20 > 1) Start the incoming node in =93survey mode=94, wait until the end of = the hints (or end of repair) and restart the node in =93normal mode=94. >=20 > 2) Use the =93nodetool remove node=94, remove data repository and = change the IP address of the removed node (I=92m working in virtual = environment), and add the node again to the cluster. In this case I will = be in a =93autobootstrap mode". >=20 > I wonder which solution is the best, and if there is a more simple and = better solution to for my use case. >=20 > Thanks. >=20