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 56E1C10F15 for ; Thu, 17 Apr 2014 00:59:38 +0000 (UTC) Received: (qmail 91649 invoked by uid 500); 17 Apr 2014 00:59:35 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91588 invoked by uid 500); 17 Apr 2014 00:59:35 -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 91580 invoked by uid 99); 17 Apr 2014 00:59:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 00:59:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of colpclark@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 00:59:30 +0000 Received: by mail-ie0-f182.google.com with SMTP id y20so11268486ier.41 for ; Wed, 16 Apr 2014 17:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=bDvz06B1gsVgHiuX+9NazHuNlO0EaEovUwNDd4AIQXA=; b=QerrDcWA5wtUlscaeVdN64y110sUrXl7vQ3mqh7w8khPiurDrUGCxbaPB7kdayowa8 QXkW8HoXVPMC1V60X8kFYHzQ65lUjfsavXVkpKIzvsxNCzgbklJH4JqVQC6gwwOxFa7V kt6fCp60jNeaOVdm0r+urdmLJhMlSnxsqduOgyqP22k76T0Hkjj7vkpCGKvCJEH2mSOL q/GYaNL4ocBuABj7ubpv1n+ENo+zTjha7XppEwBwuNLvBefIXHoE3YGgxEXpPSFbe2VM xeH4W3jof1S/HuoTLRjnoadxPjpBAiFSl0+GaHelTVUo3q1Zs2FL5STcHvz98DuAAUsh q0qg== X-Received: by 10.43.140.144 with SMTP id ja16mr7043368icc.46.1397696347876; Wed, 16 Apr 2014 17:59:07 -0700 (PDT) Received: from [192.168.1.44] (173-23-245-196.client.mchsi.com. [173.23.245.196]) by mx.google.com with ESMTPSA id j2sm2194559igx.13.2014.04.16.17.59.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 17:59:06 -0700 (PDT) Subject: Re: How safe is "nodetool move" in 1.2 ? References: From: Colin Content-Type: multipart/alternative; boundary=Apple-Mail-5C69DDDA-9717-42E0-81FD-7AD536868292 X-Mailer: iPhone Mail (11D167) In-Reply-To: Message-Id: <2286E9E8-D403-4013-94F7-02F8308623B1@gmail.com> Date: Wed, 16 Apr 2014 19:59:05 -0500 To: "user@cassandra.apache.org" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-5C69DDDA-9717-42E0-81FD-7AD536868292 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable I have recently tested this scenario under a couple versions of Cassandra an= d have been able to write and read to/from the cluster while performing a mo= ve. I performed these tests utilizing an RF=3D2 on a three node cluster while pe= rforming quorum reads and received no errors due to unavailable replicas. I will be doing some more testing on this under different scenarios, but so f= ar so good However, I would strongly recommend an RF of at least 3 when performing quor= um based reads because otherwise you're subject to failed reads in event of l= osing one node. -- Colin 320-221-9531 > On Apr 16, 2014, at 6:28 PM, Richard Low wrote: >=20 >> On 16 April 2014 05:08, Jonathan Lacefield wrot= e: >> Assuming you have enough nodes not undergoing "move" to meet your CL requ= irements, then yes, your cluster will still accept reads and writes. Howev= er, it's always good to test this before doing it in production to ensure yo= ur cluster and app will function as designed. >=20 > This is not a correctness requirement: writes go to the move source and de= stination during the move and reads come from the source. Otherwise you coul= d lose data during move (and certainly would lose data if replication factor= was one). However, nodes that are involved in the move will be slower so it= will be better for performance to not move nodes that share replicas simult= aneously. >=20 > Richard. --Apple-Mail-5C69DDDA-9717-42E0-81FD-7AD536868292 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I have recently tested this scenario u= nder a couple versions of Cassandra and have been able to write and read to/= from the cluster while performing a move.

I perform= ed these tests utilizing an RF=3D2 on a three node cluster while performing q= uorum reads and received no errors due to unavailable replicas.
I will be doing some more testing on this under different scena= rios, but so far so good

However, I would strongly r= ecommend an RF of at least 3 when performing quorum based reads because othe= rwise you're subject to failed reads in event of losing one node.

--<= div>Colin
320-221-9531


On Apr 1= 6, 2014, at 6:28 PM, Richard Low <= richard@wentnet.com> wrote:

On= 16 April 2014 05:08, Jonathan Lacefield <jlacefield@datastax.com&= gt; wrote:
Assuming you have enough node= s not undergoing "move" to meet your CL requirements, then yes, your cluster= will still accept reads and writes.   However, it's always good to tes= t this before doing it in production to ensure your cluster and app will fun= ction as designed.

This is not a correctness requirement: writ= es go to the move source and destination during the move and reads come from= the source. Otherwise you could lose data during move (and certainly would l= ose data if replication factor was one). However, nodes that are involved in= the move will be slower so it will be better for performance to not move no= des that share replicas simultaneously.

Richard.
= --Apple-Mail-5C69DDDA-9717-42E0-81FD-7AD536868292--