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 1279ADEA9 for ; Fri, 17 May 2013 16:01:20 +0000 (UTC) Received: (qmail 78801 invoked by uid 500); 17 May 2013 16:01:17 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 78738 invoked by uid 500); 17 May 2013 16:01:17 -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 78718 invoked by uid 99); 17 May 2013 16:01:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 16:01:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tomas.nunez@groupalia.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 16:01:10 +0000 Received: by mail-ob0-f171.google.com with SMTP id ef5so4883855obb.16 for ; Fri, 17 May 2013 09:00:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=sM8lAXqyPacA360auYX5+rsxCc0+PAxxtGftlQhhHag=; b=P/7Sl+pO/GQ87lx/eUcmM51l47qEBMd50zMhe5PTUI2/kESrq/dyZNRQywBSt4Iqw5 t1Acq+gvfgqJAa/lPb9dPOyrKXWQIxUT8GCRGRGrWcQ1ktNtcnLa0HIz/94nB3kWiNq7 EAOHLLP1CJtcALV3Gqzcn1IOuOXalU50bV3Uk50VGgfbwql7G8J6IlkOsKz12k9luTSW IbZA9BbO8XCN/rEy/FQesxb40sK+uZ+kEhfdR8BYPzkWra7Kou7L436UXYQVt4YVAoVS WSEPqMpClbrEXbCitEEctLM1p6uPVfKtr4xlKxhSiTMFDf/PMZL49h5w1v9ZJAM+q7DD 3NZQ== MIME-Version: 1.0 X-Received: by 10.182.171.99 with SMTP id at3mr21938684obc.25.1368806449189; Fri, 17 May 2013 09:00:49 -0700 (PDT) Received: by 10.60.131.239 with HTTP; Fri, 17 May 2013 09:00:49 -0700 (PDT) Date: Fri, 17 May 2013 18:00:49 +0200 Message-ID: Subject: Logging Cassandra queries From: =?ISO-8859-1?Q?Tom=E0s_N=FAnez?= To: user Content-Type: multipart/alternative; boundary=e89a8ff1cf862bb13a04dcec1635 X-Gm-Message-State: ALoCoQlW3o6H6pfLU0gczeuhG6GaYSnzJxE16ShgJE2dzLeoIUKHhwPqwqnc57Uqmtnfj8kEW3RI X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1cf862bb13a04dcec1635 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi! For quite time I've been having some unexpected loadavg in the cassandra servers. I suspect there are lots of uncontrolled queries to the cassandra servers causing this load, but the developers say that there are none, and the load is due to cassandra internal processes. Trying to get to the bottom, I've been looking into completed ReadStage and MutationStage through JMX, and the numbers seem to confirm my theory, but I'd like to go one step forward and, if possible, list all the queries from the webservers to the cassandra cluster (just one node would be enough). I've been playing with cassandra loglevels, and I can see when a Read or a Write is done, but it would be better if I could knew the CF of the query. For my tests I've put the in the log4j.server " log4j.rootLogger=3DDEBUG,stdout,R", writing and reading a test CF, and I can't see the name of it anywhere. For the test I'm using Cassandra 0.8.4 (yes, still), as my production servers, and also 1.0.11. Maybe this changes in 1.1? Maybe I'm doing something wrong? Any hint? And... could I be more precise when enabling logging? Because right now, with *log4j.rootLogger=3DDEBUG,stdout,R* I'm getting a lot of information I won't use ever, and I'd like to enable just what I need to see gets and seds.... Thanks in advance, Tom=E0s --e89a8ff1cf862bb13a04dcec1635 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi!

For quite time I've been having= some unexpected loadavg in the cassandra servers. I suspect there are lots= of uncontrolled queries to the cassandra servers causing this load, but th= e developers say that there are none, and the load is due to cassandra inte= rnal processes.=A0

Trying to get to the bottom, I've been looking into= completed ReadStage and MutationStage through JMX, and the numbers seem to= confirm my theory, but I'd like to go one step forward and, if possibl= e, list all the queries from the webservers to the cassandra cluster (just = one node would be enough).=A0

I've been playing with cassandra loglevels, and I c= an see when a Read or a Write is done, but it would be better if I could kn= ew the CF of the query. For my tests I've put the in the log4j.server &= quot;=A0log4j.rootLogger=3DDEBUG,stdout,R", writing and reading a test= CF, and I can't see the name of it anywhere.

For the test I'm using Cassandra 0.8.4 (yes, still)= , as my production servers, and also 1.0.11. Maybe this changes in 1.1? May= be I'm doing something wrong? Any hint?

And... could I be more precise when enabling logging? Because right now, wi= th log4j.rootLogger=3DDEBUG,stdout,R=A0I'm getting a lot of info= rmation I won't use ever, and I'd like to enable just what I need t= o see gets and seds....

Thanks in advance,=A0
Tom= =E0s

--e89a8ff1cf862bb13a04dcec1635--