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 652BE200B11 for ; Mon, 13 Jun 2016 20:19:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 63B4E160A3C; Mon, 13 Jun 2016 18:19:36 +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 5C537160A1A for ; Mon, 13 Jun 2016 20:19:35 +0200 (CEST) Received: (qmail 29520 invoked by uid 500); 13 Jun 2016 18:19:33 -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 29510 invoked by uid 99); 13 Jun 2016 18:19:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2016 18:19:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7225D1800B5 for ; Mon, 13 Jun 2016 18:19:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.189 X-Spam-Level: * X-Spam-Status: No, score=1.189 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id B5at3TG87DMU for ; Mon, 13 Jun 2016 18:19:30 +0000 (UTC) Received: from mail-it0-f68.google.com (mail-it0-f68.google.com [209.85.214.68]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 46F7C5F4EB for ; Mon, 13 Jun 2016 18:19:30 +0000 (UTC) Received: by mail-it0-f68.google.com with SMTP id d71so8272087ith.1 for ; Mon, 13 Jun 2016 11:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hZtieOySVMxpPGoZalmd5xMKfs7r56QD1jqYEquVhdY=; b=peOQkvTlqGNcby62/x+dYQXro8x7tM3V4CuesjmyULB8eRqXvhA0ujxU01carsm92J EMDSEANQ9JS1QcN5wlgdw12va0Szwfry2uXBaoJV/toK1eQDrhk4VER8AEBq2vutCeMw y7QkmuqxP3rnz9Zdzlc6TS6LghAxjOD4qCbLtT7cDTlBOkpUz4hzyHS7aPt3Yf9TT6rD 3IgjHAhraqaQxM+DjIZxfLqwtqxpdav/HqNy83WAwJMSyE546O2bTMdHFV75ps0n1VDO 36t6PSZlUu6MgkDdmyskOgjQ+0vQw62eNz/mP1l6a+nY6S9gqIla9GhsoQoq4OMYOnJp IACQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hZtieOySVMxpPGoZalmd5xMKfs7r56QD1jqYEquVhdY=; b=XBsaqNwzxHXb9xXya7ui+If+EYxwLU21965RAXzSpg7X8AmtqxSajs6IOfVVFpvfS7 UVrnHtNI7FP6XshIwPgRfgSwHJQ13HEz3v0Q+DEc7PFlD2KHjtr9gNWymxjFZXNHODxd j/mLrYC3TlH5oHr30zkIWcyQ6C15EO8ba+N0k34sxtpZ7Gcvx1AgyLC2zwOHrfbXhaFv wJZ7Td65Ou+apP/XpJ0p1QVd3A8wsl/uVfywkB6ssTo0kfb1cdJB4/QPHC+auR9yniF/ jAHQRM6me4TGaIZhAkzJD06BEkViQx6f7UHXY2vAt8mwujRSGbO2Y7Cy9CcXFESGmODA yqdQ== X-Gm-Message-State: ALyK8tJN/iB0a9JumLShRlDkVwgEfvefC1OMSAIilxATkYm02MXLxksEWtwo55ABZwl+JNLhlP/t5mCoXw2i3w== X-Received: by 10.36.14.71 with SMTP id 68mr1660570ite.98.1465841969446; Mon, 13 Jun 2016 11:19:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.26.131 with HTTP; Mon, 13 Jun 2016 11:19:28 -0700 (PDT) In-Reply-To: References: <4678ED0E-5298-4E54-9684-75B71D47251F@crowdstrike.com> From: Anshu Vajpayee Date: Mon, 13 Jun 2016 23:49:28 +0530 Message-ID: Subject: Re: Why there is no native shutdown command in cassandra To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a1143ac6ce2c44105352ced61 archived-at: Mon, 13 Jun 2016 18:19:36 -0000 --001a1143ac6ce2c44105352ced61 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I just tested. It doesn't flush memtables like nodetool drain/flush command. Means it only does crash for the node, no graceful shutdown. On Mon, Jun 13, 2016 at 10:51 PM, Jake Luciani wrote: > Yeah same as drain. Just exits at the end. > > On Mon, Jun 13, 2016 at 1:11 PM, Anshu Vajpayee > wrote: > >> Thanks for information. >> >> Does stopdaemon also flush memtables and stop trift and CQL interface >> before shutting down the daemon ? does node also announce shutting dow= n >> message in ring ? >> >> >> On Mon, Jun 13, 2016 at 10:14 PM, Jake Luciani wrote: >> >>> If you want to understand why, it's because C* was designed to be >>> crash-only. >>> >>> https://www.usenix.org/conference/hotos-ix/crash-only-software >>> >>> Since this is great for the project but bad for operators experience we >>> have later added this stopdaemon command. >>> >>> On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee < >>> anshu.vajpayee@gmail.com> wrote: >>> >>>> As per Documentation(pasted as below), It does not stop Daemon . I >>>> tested also.I was looking for graceful shutdown for Cassandra Daemon. >>>> Description >>>> >>>> >>>> Flushes all memtables from the node to SSTables on disk. Cassandra >>>> stops listening for connections from the client and other nodes. You n= eed >>>> to restart Cassandra after running nodetool drain. You typically use >>>> this command before upgrading a node to a new version of Cassandra. To >>>> simply flush memtables to disk, use nodetool flush. >>>> >>>> On Mon, Jun 13, 2016 at 10:00 PM, Jeff Jirsa < >>>> jeff.jirsa@crowdstrike.com> wrote: >>>> >>>>> `nodetool drain` >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> *From: *Anshu Vajpayee >>>>> *Reply-To: *"user@cassandra.apache.org" >>>>> *Date: *Monday, June 13, 2016 at 9:28 AM >>>>> *To: *"user@cassandra.apache.org" >>>>> *Subject: *Why there is no native shutdown command in cassandra >>>>> >>>>> >>>>> >>>>> Hi All >>>>> >>>>> >>>>> >>>>> Why we dont have native shutdown command in Cassandra ? >>>>> >>>>> >>>>> >>>>> Every software provides graceful shutdown command. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> =E2=80=8BRegards, >>>>> >>>>> Anshu=E2=80=8B >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> *Regards,* >>>> *Anshu * >>>> >>>> >>>> >>> >>> >>> -- >>> http://twitter.com/tjake >>> >> >> >> >> -- >> *Regards,* >> *Anshu * >> >> >> > > > -- > http://twitter.com/tjake > --=20 *Regards,* *Anshu * --001a1143ac6ce2c44105352ced61 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I just tested. It doesn't flush memtables like nodetool dra= in/flush command. Means it only does crash for the node, no graceful shutdo= wn.



On Mon, Jun 13, 2016 at 10:51 PM, Jake Luciani &l= t;jakers@gmail.com> wrote:
Yeah= same as drain.=C2=A0 Just exits at the end.

On Mon, Jun 13, 201= 6 at 1:11 PM, Anshu Vajpayee <anshu.vajpayee@gmail.com> wrote:
Thanks for informat= ion.=C2=A0

Does stopdaemon also flush memtables =C2=A0and stop trift a= nd CQL interface before shutting down the daemon ? =C2=A0does node also ann= ounce =C2=A0shutting down message =C2=A0in ring =C2=A0?=C2=A0


On M= on, Jun 13, 2016 at 10:14 PM, Jake Luciani <jakers@gmail.com>= wrote:
If you want to u= nderstand why, it's because C* was designed to be crash-only.

<= /div>

Since this is great for th= e project but bad for operators experience we have later added this stopdae= mon command.

On Mon, Jun 13, 2016 at 12:37 PM, Anshu Vajpayee <= anshu.vajpayee@gmail.com> wrote:

As= per Documentation(pasted as below), It does not stop Daemon . I tested als= o.

I was looking= for graceful shutdown =C2=A0for Cassandra Daemon.

Description=C2=A0

Flushes all memtables from= the node to SSTables on disk. Cassandra stops listening for connections fr= om the client and other nodes. You need to restart Cassandra after running= =C2=A0nodetool drain. You typica= lly use this command before upgrading a node to a new version of Cassandra.= To simply flush memtables to disk, use=C2=A0nodetool flush.


On Mon, Jun 13, 2016 at 10:00 PM, Jeff= Jirsa <jeff.jirsa@crowdstrike.com> wrote:

`nodetool drain`

= =C2=A0

=C2=A0

From: <= /span>Anshu Vajpayee &l= t;anshu.vajpa= yee@gmail.com>
Reply-To: "user@cassandra.apache.org" <= ;user@cassan= dra.apache.org>
Date: Monday, June 13, 2016 at 9:28 AM
= To: "user@cassandra.apache.org" <user@cassandra.apache.org>
Su= bject: Why there is no native shutdown command in cassandra

=C2=A0

Hi All=C2=A0

=C2=A0=

W= hy we dont have native shutdown command in Cassandra ?=

<= u>=C2=A0

Every software provides graceful shutdown command.= =C2=A0

=C2=A0

=C2=A0

=C2=A0

=E2=80=8BRega= rds,

Anshu=E2=80=8B

=C2=A0

=C2=A0

=



<= font color=3D"#888888">--
Regards,<= /div>Anshu=C2=A0





<= font color=3D"#888888">--



<= font color=3D"#888888">--
Regards,<= /div>Anshu=C2=A0





--



--
Regards,
Anshu=C2=A0


--001a1143ac6ce2c44105352ced61--