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 4A8C67663 for ; Mon, 15 Aug 2011 20:40:12 +0000 (UTC) Received: (qmail 88860 invoked by uid 500); 15 Aug 2011 20:40:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 88807 invoked by uid 500); 15 Aug 2011 20:40:09 -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 88799 invoked by uid 99); 15 Aug 2011 20:40:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 20:40:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of oleg.tsvinev@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; Mon, 15 Aug 2011 20:40:03 +0000 Received: by fxe6 with SMTP id 6so4215283fxe.31 for ; Mon, 15 Aug 2011 13:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Hp8/1stJcX8Y5blU6BWY8bpY+zQs5CvDKmcRWEX1pPo=; b=BFAM6juJBiRV+a3ayrtsbMwCFf8ojK6VXwqfDA7ynPBOkaU8V4vRc4wl0krCP/LZ8K MEFTS3selY968hAvEwS6RAXpqWv8p3abge6FdlDnsfjvzuTdUxEkd5Ws4DKg2LQT6k2N 2ub5n4YvejfGbkMbNdrYgN9NFPlYpChHI5U78= Received: by 10.223.149.77 with SMTP id s13mr5992175fav.99.1313440783200; Mon, 15 Aug 2011 13:39:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.113.78 with HTTP; Mon, 15 Aug 2011 13:39:23 -0700 (PDT) From: Oleg Tsvinev Date: Mon, 15 Aug 2011 13:39:23 -0700 Message-ID: Subject: Cassandra in Multiple Datacenters Active - Standby configuration To: Cassandra Users , hector-users@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have a question that documentation=C2=A0has not clear answer for. I have the following requirements: 1. Synchronously store data in datacenter DC1 on 2+ nodes 2. Asynchronously replicate the same data to DC2 and store it on 2+ nodes to act as a hot standby Now, I have configured keyspaces with o.a.c.l.NetworkTopologyStrategy with strategy_options=3D[{DC1:2, DC2:2}] and use LOCAL_QUORUM consistency level, following documentation here: http://www.datastax.com/docs/0.8/operations/datacenter Now, how do I assign initial tokens? If I have, say 6 nodes total, 3 in DC1 and 3 in DC2, and create a ring as if all 6 nodes share the total 2^128 space equally. Now say node N1:DC2 has key K and is in remote datacenter (for an app in DC1). Wouldn't Cassandra always forward K to the DC2 node N1 thus turning asynchronous writes into synchronous ones? Performance impact will be huge as the latency between DC1 and DC2 is significant. I hope there's an answer and I'm just missing something. My case falls under Disaster Recovery in http://www.datastax.com/docs/0.8/operations/datacenter but I don't see how Cassandra will support my use case. I appreciate any help on this. Thank you, Oleg