Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 24329 invoked from network); 11 Oct 2010 15:27:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Oct 2010 15:27:08 -0000 Received: (qmail 65409 invoked by uid 500); 11 Oct 2010 15:27:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 65359 invoked by uid 500); 11 Oct 2010 15:27:06 -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 65351 invoked by uid 99); 11 Oct 2010 15:27:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 15:27:06 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of edlinuxguru@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 15:26:59 +0000 Received: by bwz14 with SMTP id 14so1398407bwz.31 for ; Mon, 11 Oct 2010 08:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ttwctMNw4ggdZ9VaWGFaOc9vMSly438wARxWCA8DtHQ=; b=FvQSA8+0uP1IZAPuHEb1JDzNe0ilmeh1lPJzCLz1ovynWODubhyMm6+htfhxXMnR3h ZNwuznYm3v0gcXilBh/Use1IIYDHiwq3GaRJ61e5qj23fOmUqKW9gjlG13TXmawyV/LZ i1+mntrM5MJCHs3TwU+IMySyMWieeFxBrUkOE= 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=nL5sA5tKtZBWspfzkxhHXDajzHL6kuVvRQXLb3mzdU6bZrM4eVkBYuF/AbKrVvuKC/ tw7denpgGB1LW68u90lvA3O54IZdli0/PxYjqfgrTrfRm9s+ilFDmQu9M+2F9w68GRAx N/qoeakyDedCYA58MHGMnNQuRH3WsGppwTl3M= MIME-Version: 1.0 Received: by 10.204.60.82 with SMTP id o18mr5185840bkh.174.1286810799009; Mon, 11 Oct 2010 08:26:39 -0700 (PDT) Received: by 10.204.62.84 with HTTP; Mon, 11 Oct 2010 08:26:38 -0700 (PDT) In-Reply-To: <0D83BEFE4B70484AA8BDF69BB54C39067D738ED4@mail.choicestream.com> References: <0D83BEFE4B70484AA8BDF69BB54C39067D738ED4@mail.choicestream.com> Date: Mon, 11 Oct 2010 11:26:38 -0400 Message-ID: Subject: Re: Multi Data Center Strategy From: Edward Capriolo 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 On Mon, Oct 11, 2010 at 9:53 AM, Henry Luo wrote: > We have an application that does a lot of updates to the rows. We use > replication factor of 3 and are moving to multiple data centers. We would > like to accomplish the following setup: > > > > Data are replicated to other data centers. RackAwareStrategy seems to be > able to handle that, however > > > > 1)=A0=A0=A0=A0=A0 We don=92t need the data replicated across data centers= for each > individual update, since they got overridden a lot. Rather, we=92d like i= t be > replicated =91once a while=92, say after x number of updates to a row, or= after > y number of minutes. In essence, it=92s a delayed write of the latest cop= y > only to remote nodes. > > 2)=A0=A0=A0=A0=A0 We would like the read be handled only by the nodes loc= al to the > client, i.e., don=92t bother to send read requests to the remote data cen= ter > since it=92s too slow. If the request fails locally, just let it fail. > > > > Is there a way to accomplish this by > > 1)=A0=A0=A0=A0=A0 Configure Cassandra in a certain way > > 2)=A0=A0=A0=A0=A0 Change/Add replication strategy > > 3)=A0=A0=A0=A0=A0 Change/Add some core Cassandra features > > 4)=A0=A0=A0=A0=A0 Use another layer in front of Cassandra =96 I=92d rathe= r not to go this > route. > > > > Thanks. > > > > Henry > > > > ________________________________ > The information transmitted is intended only for the person or entity to > which it is addressed and may contain confidential, proprietary, and/or > privileged material. Any review, retransmission, dissemination or other u= se > of, or taking of any action in reliance upon this information by persons = or > entities other than the intended recipient is prohibited. If you received > this in error, please contact the sender and delete the material from all > computers. > 1) No you can not do this. In 7.0 you can set the read_repair_chance to a low % so read repairs only happen periodically. 2) If you have your multi-data center configuration setup properly with respect to snitches, and you read at Consistency Level ONE, or DCQuorum, and set read_repair_chance to a low % as specified above you will achieve this. Edward