Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 55349 invoked from network); 1 Sep 2010 22:11:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 22:11:32 -0000 Received: (qmail 28690 invoked by uid 500); 1 Sep 2010 22:11:30 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 28598 invoked by uid 500); 1 Sep 2010 22:11:30 -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 28590 invoked by uid 99); 1 Sep 2010 22:11:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 22:11:30 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 22:11:25 +0000 Received: by wwb13 with SMTP id 13so383458wwb.1 for ; Wed, 01 Sep 2010 15:11:03 -0700 (PDT) Received: by 10.216.159.195 with SMTP id s45mr8409950wek.43.1283379063608; Wed, 01 Sep 2010 15:11:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.3.129 with HTTP; Wed, 1 Sep 2010 15:10:43 -0700 (PDT) In-Reply-To: <4C7ECC38.1000408@qualcomm.com> References: <20100901162612.GA5944@alcatel-lucent.com> <4C7EB31C.2090609@qualcomm.com> <4C7ECC38.1000408@qualcomm.com> From: Benjamin Black Date: Wed, 1 Sep 2010 15:10:43 -0700 Message-ID: Subject: Re: Cassandra on AWS across Regions To: Andres March Cc: "user@cassandra.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It's not gossiping hostnames, it's gossiping IP addresses. The purpose of Peter's patch is to have the system gossip its external address (so other nodes can connect), but bind its internal address. As Edward notes, it helps with NAT in general, not just EC2. Not perfect, but a great start. b On Wed, Sep 1, 2010 at 2:57 PM, Andres March wrote: > Is it not possible to put the external host name in cassandra.yaml and ad= d a > host entry in /etc/hosts for that name to resolve to the local interface? > > On 09/01/2010 01:24 PM, Benjamin Black wrote: > > The issue is this: > > The IP address by which an EC2 instance is known _externally_ is not > actually on the instance itself (the address being translated), and > the _internal_ address is not accessible across regions. Since you > can't bind a specific address that is not on one of your local > interfaces, and Cassandra nodes don't have a notion of internal vs > external you need a mechanism by which a node is told to bind one IP > (the internal one), while it gossips another (the external one). > > I like what this patch does conceptually, but would prefer > configuration options to cause it to happen (obviously a much larger > patch). Very cool, Peter! > > > b > > On Wed, Sep 1, 2010 at 1:10 PM, Andres March wrote: > > Could you explain this point further?=A0 Was there an exception? > > On 09/01/2010 09:26 AM, Peter Fales wrote: > > that doesn't quite work with the stock Cassandra, as it will > try to bind and listen on those addresses and give up because they > don't appear to be valid network addresses. > > -- > Andres March > amarch@qualcomm.com > Qualcomm Internet Services > > -- > Andres March > amarch@qualcomm.com > Qualcomm Internet Services