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 1B0DD200C09 for ; Wed, 25 Jan 2017 17:16:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 19A5C160B50; Wed, 25 Jan 2017 16:16:15 +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 63EA4160B4E for ; Wed, 25 Jan 2017 17:16:14 +0100 (CET) Received: (qmail 86804 invoked by uid 500); 25 Jan 2017 16:16:12 -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 86794 invoked by uid 99); 25 Jan 2017 16:16:12 -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; Wed, 25 Jan 2017 16:16:12 +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 60FC9185D86 for ; Wed, 25 Jan 2017 16:16:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.78 X-Spam-Level: * X-Spam-Status: No, score=1.78 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id VWXeEYNanKZ2 for ; Wed, 25 Jan 2017 16:16:11 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8180F5F613 for ; Wed, 25 Jan 2017 16:16:10 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id j15so119953059oih.2 for ; Wed, 25 Jan 2017 08:16:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zFPrFIaXFgRunaZa3Zzj0XQEqnEfb8p5Pl0ER9jvDYQ=; b=An1ei+H7OiG0a8n51SK+tBFEBgWOPYCZ/G64d73uOy7vfu77NYyhl7M2+kv1mVBoHN l3NifXVasKFOGSVegJ3rSsvjs7/Yt8/+tnu07h0e8sY/gbD2NdwvNQtfSXxd4PuD7q1S fOoJ5rnefrzchbNhvY71lkW1MFXXUkdixda4izeIwihHBumnuQdVkYIdTNv0ir163ffp 77YFApQ3Pi/jlvNibLaKGGMmiZog2NvgwG7oKfH23rjYBq1+XQQTbyR3/gOk8gl8mfEr gAK+ax2HWAtQdg+yqt/lspIzBLmCNvxTruZjL0x+G55wUOxmLo1t4df7j6AS08B4Hllh fdlA== X-Gm-Message-State: AIkVDXLYNzh5j3fmChEewDLmHxKCafVxcxQcRteMuWO/2RJALzyjSGWGkSvoABe1aVaHDOE0vbTuP22+ugMBAw== X-Received: by 10.202.194.70 with SMTP id s67mr18190473oif.4.1485360969244; Wed, 25 Jan 2017 08:16:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Haddad Date: Wed, 25 Jan 2017 16:15:58 +0000 Message-ID: Subject: Re: Expensive to run nodetool status often? To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113dc3feef676b0546ed8cca archived-at: Wed, 25 Jan 2017 16:16:15 -0000 --001a113dc3feef676b0546ed8cca Content-Type: text/plain; charset=UTF-8 You're about to walk down an unfortunate path. I strongly recommend getting the information you need for monitoring using JMX. That's actually how nodetool gets all it's information. Instead of parsing output, if you use JMX, you'll have access to a *ton* of useful (and some not so useful) information. If you aren't familiar, run Cassandra locally and type "jconsole" in your terminal. That'll bring up a decent GUI that you can use to browse all the available metrics. You can export metrics a bunch of ways. Jolokia, mx4j, jmx_exporter (for prometheus), and I know there's a collectd plugin but I haven't used it, might be worth checking out or maybe someone else can weigh in. Jon On Wed, Jan 25, 2017 at 7:48 AM Xiaolei Li wrote: > I'm planning to run "nodetool status -r" on every node every minute, > storing the output in a file, and aggregating it somewhere else for > monitoring. > > Is that a good idea? How expensive is it to be running status every > minute. > > Best, > x. > --001a113dc3feef676b0546ed8cca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You're about to walk down an unfortunate path.=C2=A0 I= strongly recommend getting the information you need for monitoring using J= MX.=C2=A0 That's actually how nodetool gets all it's information.= =C2=A0 Instead of parsing output, if you =C2=A0use JMX, you'll have acc= ess to a *ton* of useful (and some not so useful) information.

If you aren't familiar, run Cassandra locally and type "jco= nsole" in your terminal.=C2=A0 That'll bring up a decent GUI that = you can use to browse all the available metrics. =C2=A0

You can export metrics a bunch of ways.=C2=A0 Jolokia, mx4j, jmx_expo= rter (for prometheus), and I know there's a collectd plugin but I haven= 't used it, might be worth checking out or maybe someone else can weigh= in.

Jon

On Wed, Jan 25, 2017 at 7:48 AM Xiaolei Li <xiaolei@sumologic.com> wrote:
I'm planning to run "nodetool status -r" = on every node every minute, storing the output in a file, and aggregating i= t somewhere else for monitoring.

Is that a good idea?=C2=A0 How e= xpensive is it to be running status every minute.

Best,
x.
--001a113dc3feef676b0546ed8cca--