Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CEB85200C91 for ; Sun, 28 May 2017 04:11:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CD417160BDA; Sun, 28 May 2017 02:11:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1F3BC160BD7 for ; Sun, 28 May 2017 04:11:33 +0200 (CEST) Received: (qmail 6594 invoked by uid 500); 28 May 2017 02:11:32 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 6585 invoked by uid 99); 28 May 2017 02:11:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 May 2017 02:11:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0CE21C036E for ; Sun, 28 May 2017 02:11:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[FROM_MISSPACED=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id O2fhmw_BHWic for ; Sun, 28 May 2017 02:11:31 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9282A5F27B for ; Sun, 28 May 2017 02:11:30 +0000 (UTC) Received: from localhost (cust-asf.ponee.io [163.172.22.183]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5F3EFE002B for ; Sun, 28 May 2017 02:11:29 +0000 (UTC) MIME-Version: 1.0 Message-ID: Subject: Re: How do you do automatic restacking of AWS instance for cassandra? References: From: "Jeff Jirsa" In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: cb367aa5aed1991b197e48bcdd89864c2a894a70 Date: Sun, 28 May 2017 02:11:28 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Sun, 28 May 2017 02:11:35 -0000 On 2017-05-27 18:04 (-0700), Surbhi Gupta wrote: > Thanks a lot for all of your reply. > Our requirement is : > Our company releases AMI almost every month where they have some or the > other security packages. > So as per our security team we need to move our cassandra cluster to the > new AMI . > As this process happens every month, we would like to automate the process . > Few points to consider here: > > 1. We are using ephemeral drives to store cassandra data > 2. We are on dse 4.8.x > > So currently to do the process, we pinup a new nodes with new DC name and > join that DC, alter the keyspace, do rebuild and later alter the keyspace > again to remove the old DC . > > But all of this process is manually done as of now. > > So i wanted to understand , on AWS, how do you do above kind of task > automatically ? At a previous employer, they used M4 class instances with data on a dedicated EBS volumes, so we could swap AMIs / stop / start / adjust instances without having to deal with this. This worked reasonably well for their scale (which was petabytes of data). Other companies using ephemeral tend to be more willing to just terminate instances and replace them (-Dcassandra.replace_address). If you stop cassandra, then boot a replacement with 'replace_address' set, it'll take over for the stopped instance, including re-streaming all data (as best it can, subject to consistency level and repair status). This may be easier for you to script than switching your fleet to EBS, but it's not without risk. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org For additional commands, e-mail: user-help@cassandra.apache.org