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 87159286E for ; Wed, 27 Apr 2011 13:27:17 +0000 (UTC) Received: (qmail 86466 invoked by uid 500); 27 Apr 2011 13:27:15 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 86436 invoked by uid 500); 27 Apr 2011 13:27:15 -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 86428 invoked by uid 99); 27 Apr 2011 13:27:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 13:27:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sdolgy@gmail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pw0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 13:27:09 +0000 Received: by pwi5 with SMTP id 5so844531pwi.31 for ; Wed, 27 Apr 2011 06:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=IFDYQX2NwV05Isc7nX0MjrQmDPY6r5wBJ1lM748wPQo=; b=v5b8sYCop9tt0iCAMdM3I/z33RhXfzbmIU9Jzz8PHS/fHKtk8zltoBiYfG/v2QTLJt nydmAT5t0LF7cWf3L/dp6mXOPtsRFppTczxMxWrzddTbhsEDRiZ3b9Z4Ko3wNIKdLFzt Z5qIfb9E+Ht2pzOVl7qAzddgwaUwG+dh3xoOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=lwEAkgLh/zlSSYFXEP98y95xCRzzQ36z3BL9bHNxFt7Je4+oFc1xax8IME85fSUj2F CXPMRVd4QMu1P6XMltBIfmm1vTXYD4n8f9XG0Pt7+PHHQzCQ/jU6J3xQeAmJ99zcKukT 8NJCCp9Z7BdoFrrMKFHPdM19VqclNtGCVUGS4= Received: by 10.142.59.5 with SMTP id h5mr538269wfa.0.1303910809548; Wed, 27 Apr 2011 06:26:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.159.7 with HTTP; Wed, 27 Apr 2011 06:26:29 -0700 (PDT) In-Reply-To: References: <9C5FFE07-56CA-468E-8BF8-7DCBD77508C4@thelastpickle.com> <1303905319905-6309153.post@n2.nabble.com> From: Sasha Dolgy Date: Wed, 27 Apr 2011 15:26:29 +0200 Message-ID: Subject: Re: advice for EC2 deployment To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable if you migrate the instance, does Route53 automatically re-map all the information to the new ec2 instance? another issue is that cassandra only maintains the IP of the other nodes, and not the hostname (assumed based on output of the nodetool ring) ... which means, if you migrate the instance and Route53 does do some auto-magic .. the private ip for the instance will have changed and you will need to migrate that node back into the ring, while moving the old referenced IP out ... we've had quite a lot of pain with this in the past. rule of thumb, if you want to upgrade / migrate an instance, you need to remove it from the ring, do your work, bootstrap it back to the ring .. i think this could be avoided if cassandra maintained hostname references and not just IP references for nodes. -sasha On Wed, Apr 27, 2011 at 2:56 PM, William Oberman wrote: > While I haven't configured it for multi-region yet, Sasha is exactly righ= t > now how amzon's DNS works (returning private vs. public IP depending on i= f > the machine is local to the region or not).=A0 For extra fun, now that Ro= ute53 > exists you can (somewhat trivially) map and dynamically maintain all EC2 > instances to stable DNS names (but make sure to use CNAMEs to get the DNS > magic!).=A0 E.g. > cassandra1.somethinghardtoguess.ec2.yourdomain.com -> > weird.ec2.public.dns.name > > I'd drop in the somethinghardtoguess myself given Route53 can expose your > internal network topology if someone can guess the DNS name. > > will