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 113027F3E for ; Tue, 23 Aug 2011 07:03:05 +0000 (UTC) Received: (qmail 68332 invoked by uid 500); 23 Aug 2011 07:03:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 67871 invoked by uid 500); 23 Aug 2011 07:02:55 -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 67857 invoked by uid 99); 23 Aug 2011 07:02:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 07:02:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS 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; Tue, 23 Aug 2011 07:02:41 +0000 Received: from homiemail-a83.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTP id D72545E06A for ; Tue, 23 Aug 2011 00:02:14 -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=VMA3XcvtGrF3WSftriYxGfCQdoUIw+xGC/0YY5AXk+V Q4zO6WqIJRj3ojv1ZOV+iEW/UgBxEDOty7v2cAdJxAl2EhQ+0Owutl/OrhZZ4hv2 BcHlPbB6aSv1ffynUW/k9p7yFx7RkLqlNYKAJ96xh8VwzOiajcuUThzGc7g7rBIM = 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=I2r+2sO8ujSnQLB7lLEOkLcG9ng=; b=eRgna5oAsZ tLBHRiSdy3MUqCU1xUgidekOayFOq6UR39Vggi2pIKsfyHkfky1ViEup6Bgh4baW 4uHtNyCwykFcBF4OUb7qRvZVYzIbxt5yUhDwpiSs3fmBc1oHK1N5cF9BIqH8klVU tT/aYjR7gHk/mqxO5CrU28Eem4/C+vyAs= Received: from [172.16.1.4] (222-152-100-67.jetstream.xtra.co.nz [222.152.100.67]) (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 681FF5E063 for ; Tue, 23 Aug 2011 00:02:14 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: Avoid Simultaneous Minor Compactions? From: aaron morton In-Reply-To: Date: Tue, 23 Aug 2011 19:02:10 +1200 Content-Transfer-Encoding: quoted-printable Message-Id: <35D8CC1B-2FFE-487F-A279-9563263C9AEF@thelastpickle.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org Change one thing at a time and work out what metric it is you want to = improve.=20 I would start with reducing compaction_throughput_mb_per_sec. Have a = look in your logs for the "Enqueuing flush of Memtable=85" messages, = count up how many serialised bytes you are flushing and then check it = against the advice in the yaml file.=20 Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 23/08/2011, at 11:36 AM, Hefeng Yuan wrote: > Shall I lower this or increase it? Or probably ask in this way, do we = suggest to let it run longer while using less CPU, or should we let it = finish faster with more CPU usage? > The problem we're facing is, with the default setting, they run slow = and also eat a lot of CPU in the meanwhile. >=20 > I'm thinking about the following changes, does this make sense? > 1. lower the compaction thread priority > 2. shorten the compaction threshold to 2~20 > 3. lower compaction_throughput_mb_per_sec to 10 >=20 > Thanks, > Hefeng >=20 > On Aug 22, 2011, at 8:09 AM, Jonathan Ellis wrote: >=20 >> Specifically, look at compaction_throughput_mb_per_sec in = cassandra.yaml >>=20 >> On Mon, Aug 22, 2011 at 12:39 AM, Ryan King wrote: >>> You should throttle your compactions to a sustainable level. >>>=20 >>> -ryan >>>=20 >>> On Sun, Aug 21, 2011 at 10:22 PM, Hefeng Yuan = wrote: >>>> We just noticed that at one time, 4 nodes were doing minor = compaction together, each of them took 20~60 minutes. >>>> We're on 0.8.1, 6 nodes, RF5. >>>> This simultaneous compactions slowed down the whole cluster, we = have local_quorum consistency level, therefore, dynamic_snitch is not = helping us. >>>>=20 >>>> Aside from lower down the compaction thread priority, is there any = other way to tell the cluster hold on doing this if other nodes are = already compacting? >>>>=20 >>>> Thanks, >>>> Hefeng >>>=20 >>=20 >>=20 >>=20 >> --=20 >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of DataStax, the source for professional Cassandra support >> http://www.datastax.com >=20