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 34BDB4E8B for ; Thu, 23 Jun 2011 10:47:58 +0000 (UTC) Received: (qmail 94265 invoked by uid 500); 23 Jun 2011 10:47:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 94205 invoked by uid 500); 23 Jun 2011 10:47:55 -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 94197 invoked by uid 99); 23 Jun 2011 10:47:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 10:47:55 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of etamme@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 10:47:49 +0000 Received: by fxm15 with SMTP id 15so1353670fxm.31 for ; Thu, 23 Jun 2011 03:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=dK0BViL95h+usl03Kbm8T2G0KcyNBLxeZinwG96FfFA=; b=YF8MAjnKxOD5NRxlcyL/rIvtgWfC9hZPQ3QaoHXLr41D4meqh0/Fgq+BYrDfbF8PY0 ++qTpjWFUpxa6D/6zvLEDb+Qr81u1Bas102fjhH2CE6VSks4Ys2VK9zETY/qGhqmKgOt z8m/yUT6stkFnuikatnRpY5S754GBHS2lUVFI= 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=SzMAwQ36QxErPUj/q/wfdiBNALEA7X6Qf5pOZJ88DkowdrrknI2cjuJdLw473tqS2w CF4fOxcIZcakdlfZH+ddXs6zx/iYJ77txWPSHvn6bBbAoP9glMPpzteO1/h/tiaEBuSQ p17FjZLpVysf4PpH7RCc965Cc7yVtdi01eNZ0= MIME-Version: 1.0 Received: by 10.223.56.24 with SMTP id w24mr2452869fag.131.1308826049014; Thu, 23 Jun 2011 03:47:29 -0700 (PDT) Received: by 10.223.78.137 with HTTP; Thu, 23 Jun 2011 03:47:28 -0700 (PDT) In-Reply-To: <4E027389.8060002@dude.podzone.net> References: <4E027389.8060002@dude.podzone.net> Date: Thu, 23 Jun 2011 06:47:28 -0400 Message-ID: Subject: Re: NTS Replication Strategy - only replicating to a subset of data centers From: Eric tamme To: user@cassandra.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 Wed, Jun 22, 2011 at 6:58 PM, AJ wrote: > I'm just double-checking, but when using NTS, is it required to specify A= LL > the data centers in the strategy_options attribute? > > IOW, I do NOT want replication to ALL data centers; only a two of the thr= ee. > =A0So, if my property file snitch describes all of the existing data cent= ers > and nodes as: > > $CASSANDRA_HOME/conf/cassandra-topology.properties: > > # Cassandra Node IP=3DData Center:Rack > 175.1.1.1=3DDC1:RAC1 > 175.2.1.1=3DDC2:RAC1 > 175.3.1.1=3DDC3:RAC1 > # default for unknown nodes > default=3DDC1:rac1 > > Can I specify strategy_options as: > > strategy_options=3D[{DC1:2, DC2:1}] > > and just leave out DC3 entirely? > > If not, will setting the last one to 0 work?: > > strategy_options=3D[{DC1:2, DC2:1, DC3:0}] > > > Thanks! > You do not need to specify all data centers with NTS replication strategy. Your endpoint snitch must specify all nodes. -Eric