Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 97883 invoked from network); 15 May 2009 17:47:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 May 2009 17:47:25 -0000 Received: (qmail 95995 invoked by uid 500); 15 May 2009 17:47:25 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 95967 invoked by uid 500); 15 May 2009 17:47:25 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 95944 invoked by uid 99); 15 May 2009 17:47:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 17:47:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 17:47:23 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 14A9B118BC for ; Fri, 15 May 2009 17:47:03 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: cassandra-commits@incubator.apache.org Date: Fri, 15 May 2009 17:47:02 -0000 Message-ID: <20090515174702.25955.78297@eos.apache.org> Subject: [Cassandra Wiki] Update of "MemtableThresholds" by EricEvans X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification. The following page has been changed by EricEvans: http://wiki.apache.org/cassandra/MemtableThresholds The comment on the change is: added a bit, still needs more work ------------------------------------------------------------------------------ + '''''THIS DOCUMENT IS A WORK IN PROGRESS''''' + When performing write operations, Cassandra stores values to column-family - specific, in-memory data structures, called Memtables. Memtables + specific, in-memory data structures called Memtables. These Memtables are - are flused to disk whenever a threshold is exceeded, so it's important to - have these thresholds configured properly to keep Memtable size - in check, and overall memory usage within limits. + flushed to disk whenever one of the configurable thresholds is exceeded. + Proper tuning of these thresholds is important since the more memory that + can be put to use the better, while running out of memory is a sure way to + bring down the node. - == MemtableSizeInMB == - If left unset, defaults to 128MB. + Since Memtables store actual column values, they consume at least as + much memory as the size of data inserted. However, there is also overhead + associated with the data-structures used to index this data. When the + number of columns and rows is high compared to the size of values, this + overhead can become quite significant. + == Threshold Configuration == + Listed below are the thresholds found in `storage-conf.xml`, along with a + description. + + === MemtableSizeInMB === + As the name indicates, this sets the max size in megabytes that the + Memtable will store before triggering a threshold violation and causing + it to be flushed to disk. It corresponds to the size of the values + inserted, (plus the size of the containing column). + - == MemtableObjectCountInMillions == + === MemtableObjectCountInMillions === If left unset, defaults to 1, (or 1,000,000 objects). == Using Jconsole To Optimize Thresholds == Cassandra's column-family mbeans have a number of attributes that can - prove invaluable in determining optimal thresholds. Once way to access + prove invaluable in determining optimal thresholds. Onc way to access this instrumentation is using Jconsole, a graphical monitoring and management application that ships with your JDK.