Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31109EECE for ; Mon, 18 Feb 2013 14:45:06 +0000 (UTC) Received: (qmail 6844 invoked by uid 500); 18 Feb 2013 14:45:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 6522 invoked by uid 500); 18 Feb 2013 14:45:03 -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 5968 invoked by uid 99); 18 Feb 2013 14:44:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 14:44:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of edlinuxguru@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 14:44:33 +0000 Received: by mail-wi0-f169.google.com with SMTP id l13so3796475wie.2 for ; Mon, 18 Feb 2013 06:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=G29e0Zaz8L7b1JplTeIZMi3Fs93ZVavq5u6j/S2VryY=; b=QwPIwyfOe1lwLpuctLZCWYkBIqWUCoI+wMU6B5RAEckJjB5cxUU12EpnN/4z3gChdJ +rhy4tIvevgnP9kc/c+6paHNXN8ITB8xGIsGcFabvcSNhv51gXEJU6bpXiqKzVePQl/7 Kk83tUluHFXY2qHm/dvaGd3sW7ENLt52wRUbSVWsFpTZTklc4I/8XSDrBdNyC/uJb/aG ww/Fr6f/Nq3nglIVhWp8JjufsoDLb/MhyRTrjcgtjyDHQMvkqX/Bq1qjOWQnz5v9WPLG PzJH3tND9HSjTr0NPjGPtTbgev20ErLJz2CWfOSFn0uqh3EFpLEilpIdUxJS3odeCP6j yQzA== MIME-Version: 1.0 X-Received: by 10.180.92.129 with SMTP id cm1mr20897245wib.10.1361198644323; Mon, 18 Feb 2013 06:44:04 -0800 (PST) Received: by 10.194.61.137 with HTTP; Mon, 18 Feb 2013 06:44:04 -0800 (PST) In-Reply-To: References: Date: Mon, 18 Feb 2013 09:44:04 -0500 Message-ID: Subject: Re: Nodetool doesn't shows two nodes From: Edward Capriolo To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org These issues are more cloud specific then they are cassandra specific. Cloud executives tell me in white papers that cloud is awesome and you can fire all your sysadmins and network people and save money. This is what happens when you believe cloud executives and their white papers, you spend 10+ hours troubleshooting cloud networking problems. On Mon, Feb 18, 2013 at 9:12 AM, Boris Solovyov wrote: > I think it is actually more of a problem that there were no error messages > or other indication of what went wrong in the setup where the nodes couldn't > contact. Should I file issue report on this? Clearly Cassandra must have > tried to contact some IP on port 7000 and failed. Why didn't it log? That > would have saved me about 10 hours :-P > > > On Sun, Feb 17, 2013 at 11:54 PM, Jared Biel > wrote: >> >> This is something that I found while using the multi-region snitch - >> it uses public IPs for communication. See the original ticket here: >> https://issues.apache.org/jira/browse/CASSANDRA-2452. It'd be nice if >> it used the private IPs to communicate with nodes that are in the same >> region as itself, but I do not believe this is the case. Be aware that >> you will be charged for external data transfer even for nodes in the >> same region because the traffic will not fall under their free (for >> same AZ) or reduced (for intra-AZ) tiers. >> >> If you continue using this snitch in the mean time, it is not >> necessary (or recommended) to have those ports open to 0.0.0.0/0. >> You'll simply need to add the public IPs of your C* servers to the >> correct security group(s) to allow access. >> >> There's something else that's a little strange about the EC2 snitches: >> "us-east-1" is (incorrectly) represented as the datacenter "us-east". >> Other regions are recognized and named properly (us-west-2 for >> example) This is kind-of covered in the ticket here: >> https://issues.apache.org/jira/browse/CASSANDRA-4026 I wish it could >> be fixed properly. >> >> Good luck! >> >> >> On 17 February 2013 16:16, Boris Solovyov >> wrote: >> > OK. I got it. I realized that storage_port wasn't actually open between >> > the >> > nodes, because it is using the public IP. (I did find this information >> > in >> > the docs, after looking more... it is in section on "Types of snitches." >> > It >> > explains everything I found by try and error.) >> > >> > After opening this port 7000 to all IP addresses, the cluster boots OK >> > and >> > the two nodes see each other. Now I have the happy result. But my nodes >> > are >> > wide open to the entire internet on port 7000. This is a serious >> > problem. >> > This obviously can't be put into production. >> > >> > I definitely need cross-continent deployment. Single AZ or single region >> > deployment is not going to be enough. How do people solve this in >> > practice? > >