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 951517D56 for ; Mon, 1 Aug 2011 09:41:11 +0000 (UTC) Received: (qmail 57943 invoked by uid 500); 1 Aug 2011 09:41:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 56278 invoked by uid 500); 1 Aug 2011 09:40:37 -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 56266 invoked by uid 99); 1 Aug 2011 09:40:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 09:40:33 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a83.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 09:40:26 +0000 Received: from homiemail-a83.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTP id AAF885E06A for ; Mon, 1 Aug 2011 02:40:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= thelastpickle.com; b=j/nWqtemAGo2cs8dKasfKLoLgFPnKLoUb4AvwSb5Xxq 5XGRJqYTYqzEl5nKBf02YS5PnSkDZc305mXUf9TK/WYUiuUNMa2j6wBSyPqYXb/z yz5sBbQ5kXM2FW4jxmI+3c4xg5i7tR9ZqLvHwiN3J8/EIr42DIhmhF8CyN9Q0YeE = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=nzVo25g6VM/7KP7ajwYlthAkOqQ=; b=1o1zYXzjNr LVD+G9A2ge5OthQG/QtiEG4ixkSMJy+P814O45oejlSNQWoOUdHNUDF8u9PHsLql iVyqq4PkpNKAkWDrgwEE2CsxElClUDAuzwRGwsEeytrNe7V21/OAJ+7hy8d6mm72 N7ZBCKSczcAT9cgkIYwfajOV6wSSIiYdg= Received: from aarons-mbp-2011.lan (122-57-124-115.jetstream.xtra.co.nz [122.57.124.115]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTPSA id 359025E060 for ; Mon, 1 Aug 2011 02:40:02 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: Read latency is over 1 minute on a column family with 400,000 rows From: aaron morton In-Reply-To: <4E3634EA.4050709@wetafx.co.nz> Date: Mon, 1 Aug 2011 21:40:01 +1200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1312165382278-6639649.post@n2.nabble.com> <4E361554.30608@wetafx.co.nz> <1312169479782-6639774.post@n2.nabble.com> <4E361EEF.5080000@wetafx.co.nz> <1312170451093-6639790.post@n2.nabble.com> <4E3623B5.1060703@wetafx.co.nz> <1312172987691-6639836.post@n2.nabble.com> <4E3634EA.4050709@wetafx.co.nz> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org Having 2056 live SSTables is very odd. Minor compaction should = automatically reduce that number. What settings for = min_compaction_threshold and max_compaction_threshold did you use when = creating the CF ?=20 You can check them with node tool getcompactionthreshold . The default = is min 4 and max 32.=20 You can also set them using nodetool setcompactionthreshold (Note the = value is not persisted across a restart).=20 To provoke a minor compaction run nodetool flush. Minor compactions are = preferred to major as they keep SSTables with the compaction buckets, = where as major creates a single large file which will not be compacted = again for a long time. =20 Hope that helps. ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 1 Aug 2011, at 17:08, Teijo Holzer wrote: > Looks like a broken node, just restart Cassandra on that node. Might = want to wait for the compaction to finish on the other nodes. >=20 > Also, don't forget to JMX gc() manually after the compaction has = finished to delete the files on each node. >=20 > On 01/08/11 16:29, myreasoner wrote: >> On the node that the compaction returned almost immediately: >>=20 >> *woot@n50:~$ /opt/cassandra/bin/nodetool -h localhost compactionstats >> pending tasks: 66* >>=20 >> However, messages shown on other nodes are: >> compaction type: Major >> keyspace: MyKeyspace >> column family: Fingerprint >> bytes compacted: 25505066421 >> bytes total: 45573108438 >> compaction progress: 55.97% >> ----------------- >> pending tasks: 1 >>=20 >>=20 >>=20 >> -- >> View this message in context: = http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Read-late= ncy-is-over-1-minute-on-a-column-family-with-400-000-rows-tp6639649p663983= 6.html >> Sent from the cassandra-user@incubator.apache.org mailing list = archive at Nabble.com. >=20