Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 61052 invoked from network); 14 Oct 2009 12:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Oct 2009 12:58:21 -0000 Received: (qmail 12174 invoked by uid 500); 14 Oct 2009 12:58:21 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 12117 invoked by uid 500); 14 Oct 2009 12:58:21 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 12108 invoked by uid 99); 14 Oct 2009 12:58:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 12:58:21 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.78.148 as permitted sender) Received: from [74.125.78.148] (HELO ey-out-1920.google.com) (74.125.78.148) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 12:58:18 +0000 Received: by ey-out-1920.google.com with SMTP id 5so2193738eyb.8 for ; Wed, 14 Oct 2009 05:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9mKF4Eu96ZFe0c6Ge/YACoC1ri1z0OkONyCB0fZxsPU=; b=IxZd7u0qhV9DpSkhEK5QYm3G5grpnadv2Xa7ztOkutHGyS3CvSsiPv2sFkYUN5iIZV +Sb+6jfjjT8Yl/HnJuUcKbKSfkD+QyvCLybiD3JL3LgTaas7h6wxVsuTZGdZcSXJs2rQ qWkUitDi4I+d+xDQ/FazY/8cUuXQ8IwpTKBMc= 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=tGwhDCbIQiM56WP6lGyPeGrz2XXpzE+tyJ+YgiuNdOSmg3jYCt1VEp6URy9W2n5IdC LbokU+jk8AZzRIQXDu+VKHRcBXVDHqusDkSkoXCNNwY4V3V/t6GOy9Bzc5Hr/nfv0J+p EWuzPuvs/3mKZ5ndK1SSza24mI4xYighZF9UM= MIME-Version: 1.0 Received: by 10.216.88.137 with SMTP id a9mr2808288wef.119.1255525076556; Wed, 14 Oct 2009 05:57:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Oct 2009 07:57:56 -0500 Message-ID: Subject: Re: I am looking for cross data center HA solution From: Jonathan Ellis To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Oct 14, 2009 at 1:53 AM, Santal Li wrote: > There was another way for cross data center HA,=A0 how about add some kin= d of > action hook, which can catch all the Cassandra.Iface function call(insert= , > batch_insert , remove ...) , then send the call to another Cassandra clus= ter > in remote data center? If so, there will be 1 Cassandra clusters in each = 2 > data centers, and have a extra application replicate data between the two > cluster. I prefer with this solution, because it looks more simple and > uncoupled 2 data center, BTW, from the source code, it looks was not very > hard to add a hook for this purpose , how do you think about it? is there > anyone meet the same requirements,=A0 can you please give me some suggest= ion. That works fine, until you actually have a failure. Then how do you re-sync your clusters after you've done some writes in the second DC? The advantage to letting Cassandra handle replication + failover is all the hard parts are done already. :) -Jonathan