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 90CCA200BCF for ; Mon, 5 Dec 2016 23:48:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8F797160B18; Mon, 5 Dec 2016 22:48:00 +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 ED184160B27 for ; Mon, 5 Dec 2016 23:47:59 +0100 (CET) Received: (qmail 50266 invoked by uid 500); 5 Dec 2016 22:47:58 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 49922 invoked by uid 99); 5 Dec 2016 22:47:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2016 22:47:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7B6E12C2A6C for ; Mon, 5 Dec 2016 22:47:58 +0000 (UTC) Date: Mon, 5 Dec 2016 22:47:58 +0000 (UTC) From: "Jeff Jirsa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-13000) slow query log analysis tool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Dec 2016 22:48:00 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Jirsa updated CASSANDRA-13000: ----------------------------------- Component/s: Observability > slow query log analysis tool > ---------------------------- > > Key: CASSANDRA-13000 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13000 > Project: Cassandra > Issue Type: New Feature > Components: Observability > Reporter: Jon Haddad > > As a follow up to CASSANDRA-12403, it would be very helpful to have a tool to process the slow queries that are logged. In the MySQL world, there's a tool called mysqldumpslow, which processes a slow query log, abstracts the parameters to prepared statements, and shows the queries which are causing problems based on frequency. The {{mysqldumpslow}} utillity shows an aggregated count & time statistics spent on slow queries. For instance: > {code}shell> mysqldumpslow > Reading mysql slow query log from /usr/local/mysql/data/mysqld51-apple-slow.log > Count: 1 Time=4.32s (4s) Lock=0.00s (0s) Rows=0.0 (0), root[root]@localhost > insert into t2 select * from t1 > Count: 3 Time=2.53s (7s) Lock=0.00s (0s) Rows=0.0 (0), root[root]@localhost > insert into t2 select * from t1 limit N > Count: 3 Time=2.13s (6s) Lock=0.00s (0s) Rows=0.0 (0), root[root]@localhost > insert into t1 select * from t1{code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)