Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 53064 invoked from network); 14 Oct 2009 06:53:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Oct 2009 06:53:55 -0000 Received: (qmail 43330 invoked by uid 500); 14 Oct 2009 06:53:54 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 43300 invoked by uid 500); 14 Oct 2009 06:53:54 -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 43291 invoked by uid 99); 14 Oct 2009 06:53:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 06:53:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of santal.li@gmail.com designates 74.125.92.150 as permitted sender) Received: from [74.125.92.150] (HELO qw-out-1920.google.com) (74.125.92.150) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 06:53:46 +0000 Received: by qw-out-1920.google.com with SMTP id 5so2790010qwc.54 for ; Tue, 13 Oct 2009 23:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=82YX4eTST9TP9ep8ktc6p/Qey30b67URFV3YkKxpazo=; b=GbkIusLEABZ95Br+AB7cx2G93OREyAQlpS4/7wQ4Blflg/p4155bXLGWJyLINMKiH6 xnahVjHmI/STOCY0ILgN0y5m9xNZj1YkeHwWCmbsQSmdQFFlz6pj6NRvocbgFv3jt8hM EycdUk+m56DHWmuatSLDi6jgJR45iLIqqssi8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xAjy5+EzGtexnknGA57+PUBtHvo0un/GFhd4McjyeDf8noWHkUzO9/XMamJSmAGmpj TmFF9hFZbCSu7+j7h9WaOx57yuZ8W3LYni/1V4kI0ZwJPh0Nbp8ZLbK7pUzDNyspCKkt AlDCExHuPA7d9MgiVSyFkdDEwMeLlfna6CyAU= MIME-Version: 1.0 Received: by 10.229.36.195 with SMTP id u3mr3294562qcd.61.1255503205159; Tue, 13 Oct 2009 23:53:25 -0700 (PDT) Date: Wed, 14 Oct 2009 14:53:25 +0800 Message-ID: Subject: I am looking for cross data center HA solution From: Santal Li To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016364181d58ed2ef0475df9e6c X-Virus-Checked: Checked by ClamAV on apache.org --0016364181d58ed2ef0475df9e6c Content-Type: text/plain; charset=ISO-8859-1 Greetings, I am looking for cross data center HA solution for Cassandra. I have do some evaluation with Cassandra's cross data center replication, my test EVN as bellow: 1. Deploy Node1, Node2 into data center A , and Node3 into data center B. 2. Set each key have 3 replications , and using "org.apache.cassandra.locator.RackAwareStrategy" for send one copy to remote data center. 3. If data center A was crashed, the data center B will have full copy, our backup service in data center B will start, and connect to Node3. 4. User will been redirect to this data center. But Seems the RackAwareStrategy was not finished, some funtions was direct throw out exception: eg: public EndPoint[] getReadStorageEndPoints(Token token, Map tokenToEndPointMap) { throw new UnsupportedOperationException("This operation is not currently supported"); } Was this strategy not finished or I should using some other Strategy, or I should do some coding work to finish it? There was another way for cross data center HA, how about add some kind of action hook, which can catch all the Cassandra.Iface function call(insert , batch_insert , remove ...) , then send the call to another Cassandra cluster 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, can you please give me some suggestion. Regards -Santal --0016364181d58ed2ef0475df9e6c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Greetings,

I am looking for cross data center HA solution for Cassan= dra.
I have do some evaluation with Cassandra's cross data center re= plication, my test EVN as bellow:

=A0 1. Deploy Node1, Node2 into da= ta center A , and Node3 into data center B.
=A0 2. Set each key have 3 replications ,=A0 and using "org.apache.cas= sandra.locator.RackAwareStrategy" for send one copy to remote data cen= ter.
=A0 3. If data center A was crashed, the data center B will have fu= ll copy, our backup service in data center B will start, and connect to Nod= e3.
=A0 4. User will been redirect to this data center.

But Seems the Ra= ckAwareStrategy was not finished, some funtions was direct throw out except= ion:

=A0 eg:
=A0=A0 =A0 =A0 public EndPoint[] getReadStorageEndPo= ints(Token token, Map<Token, EndPoint> tokenToEndPointMap)
=A0=A0=A0=A0=A0=A0 {
=A0=A0=A0=A0 =A0 =A0 =A0 throw new UnsupportedOpera= tionException("This operation is not currently supported");
= =A0 =A0=A0 =A0 }

Was this strategy not finished or I should using so= me other Strategy, or I should do some coding work to finish it?


There was another way for cross data center HA,=A0 how about add s= ome kind of action hook, which can catch all the Cassandra.Iface function c= all(insert , batch_insert , remove ...) , then send the call to another Cas= sandra cluster in remote data center? If so, there will be 1 Cassandra clus= ters in each 2 data centers, and have a extra application replicate data be= tween the two cluster. I prefer with this solution, because it looks more s= imple 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? i= s there anyone meet the same requirements,=A0 can you please give me some s= uggestion.


Regards
-Santal
--0016364181d58ed2ef0475df9e6c--