Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 87107 invoked from network); 9 Dec 2010 21:37:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 21:37:28 -0000 Received: (qmail 46090 invoked by uid 500); 9 Dec 2010 21:37:28 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 46072 invoked by uid 500); 9 Dec 2010 21:37:28 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 46064 invoked by uid 99); 9 Dec 2010 21:37:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 21:37:28 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 21:37:26 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB9Lb4M1024873 for ; Thu, 9 Dec 2010 21:37:04 GMT Message-ID: <33177713.46321291930624390.JavaMail.jira@thor> Date: Thu, 9 Dec 2010 16:37:04 -0500 (EST) From: "T Jake Luciani (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1530) More-efficient cross-DC replication MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969956#action_12969956 ] T Jake Luciani commented on CASSANDRA-1530: ------------------------------------------- bq. one thing I don't like still is how groupEndpointsByDataCenter does some grouping but also some insertLocalMessages. not a clean separation of functionality. Yeah, I couldn't think of a way to avoid this without doing two passes. I think leaving it as it was ( one huge block of code) is worse though. Otherwise your patch seems fine. > More-efficient cross-DC replication > ----------------------------------- > > Key: CASSANDRA-1530 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1530 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Jonathan Ellis > Assignee: T Jake Luciani > Fix For: 0.7.1 > > Attachments: 1530-cleaned.txt, 1530-joaquin.txt, 1530-v5.txt, 1530_v2.txt > > > Currently the coordinator node sends writes to each replica. In multi-dc situations, it would be more efficient to have the coordinator talk to a single node in each DC, which would forward the writes to the other replicas local to it. (All replicas would continue to ack to the coordinator.) > Shouldn't be difficult to add a header to RMVH saying "consult the Strategy to see who else is local to you and queue it off to them as well." > For example, consider two data centers with the following nodes: > DC1: A, B, C > DC2: D, E, F > A client connected to node A performs an insert that should be replicated to {B,C,E,F}. Currently, A will send a MUTATION verb to each of those nodes directly. But communication to E and F is relatively expensive since they are in the other data center from A. So we'd like to send the mutation to just one, say E, with a tag saying "forward this to F as well." -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.