Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 76107 invoked from network); 26 Nov 2010 14:17:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 14:17:52 -0000 Received: (qmail 16824 invoked by uid 500); 26 Nov 2010 14:17:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 16553 invoked by uid 500); 26 Nov 2010 14:17:50 -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 16538 invoked by uid 99); 26 Nov 2010 14:17:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 14:17:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,T_HK_NAME_DR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ajp@eutechnyx.com designates 194.116.198.142 as permitted sender) Received: from [194.116.198.142] (HELO gse-mta-03.emailfiltering.com) (194.116.198.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 14:17:44 +0000 Received: from host-195-188-251-108.reversezone.co.uk ([195.188.251.108]) by gse-mta-03.emailfiltering.com with emfmta (version 4.6.0.72) vanilla id 9592857722 for user@cassandra.apache.org;8149352552e4c4f5; Fri, 26 Nov 2010 14:17:21 +0000 Received: from xchange.eutechnyx.com (10.12.0.40:14868) by mail.eutechnyx.com with [XMail 1.20 ESMTP Server] id for from ; Fri, 26 Nov 2010 14:17:20 -0000 Received: from XCHANGE.eutechnyx.com ([::1]) by xchange.eutechnyx.com ([::1]) with mapi; Fri, 26 Nov 2010 14:17:19 +0000 From: "Dr. Andrew Perella" To: "user@cassandra.apache.org" Subject: RE: Newbie question on Cassandra mem usage Thread-Topic: Newbie question on Cassandra mem usage Thread-Index: AQHLinWBXJ2oI3qvP0ybvkwWOcmRvZN9624AgAAWRoCAAATgAIAFzaAw Date: Fri, 26 Nov 2010 14:17:16 +0000 Message-ID: <9F83B51B5E3935419B14FC2D1436FC094FE3F55A@xchange.eutechnyx.com> References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_9F83B51B5E3935419B14FC2D1436FC094FE3F55Axchangeeutechny_" MIME-Version: 1.0 --_000_9F83B51B5E3935419B14FC2D1436FC094FE3F55Axchangeeutechny_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable How can I set these per CF when I create them dynamically? Regards, Andrew From: Aaron Morton [mailto:aaron@thelastpickle.com] Sent: 22 November 2010 21:40 To: user@cassandra.apache.org Subject: Re: Newbie question on Cassandra mem usage They are memtable_throughput_in_mb, memtable_flush_after_mins, memtable_ope= rations_in_millions. Under 0.7 these are per CF settings, in 0.6 these are cluster wide. To start with try mb one down to something like 64 or 128, ops to 0.5 and = mins to 60 . What version are you using ? Aaron On 23 Nov, 2010,at 10:22 AM, Trung Tran wrote: Hi, Is it the min_compaction_threshold and max_compaction_threshold? Do i need to lower the memtable setting also? Thanks, Trung. On Mon, Nov 22, 2010 at 12:02 PM, Jonathan Ellis wrote: > Set your columnfamily thresholds lower. > > On Mon, Nov 22, 2010 at 12:45 PM, Trung Tran w= rote: >> Hi, >> >> I have a test cluster of 3 nodes, 14Gb of mem in each node, >> replication factor =3D 3. With default -Xms and Xmx, my nodes are set to >> have max-heap-size =3D 7Gb. After initial load with about 200M rows >> (write with hector default consistencylevel =3D quorum,) my nodes memory >> usage are up to 13.5Gb, show a bunches of GC notifications and >> eventually crashes with java.lang.OutOfMemoryError: Java heap space. >> >> Is there any setting that can help with this scenario? >> >> Thanks, >> Trung. >> > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of Riptano, the source for professional Cassandra support > http://riptano.com > This email has been scanned for all known viruses by the Email Protection A= gency = This e-mail is confidential and may be privileged. It may be read, copi= ed and used only by the intended recipient. No communication sent by e-= mail to or from Eutechnyx is intended to give rise to contractual or ot= her legal liability, apart from liability which cannot be excluded unde= r English law.=20=0D=0A=0D=0AThis email has been scanned for all known = viruses by the Email Protection Agency. http://www.epagency.net=0D=0A=0D= =0A=0D=0Awww.eutechnyx.com Eutechnyx Limited. Registered in England No:= 2172322=0D=0A= --_000_9F83B51B5E3935419B14FC2D1436FC094FE3F55Axchangeeutechny_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

How can I set these per CF when I create them dynamically?

Regards,

Andrew

 

From: Aaron Morton [mailto:aaron@thelastpickle.com]
Sent: 22 November 2010 21:40
To: user@cassandra.apache.org
Subject: Re: Newbie question on Cassandra mem usage

 

They are memtable_throughput_in_mb, memtable_flush_after_mins, memtable_operations_in_millions. 

 

Under 0.7 these are per CF settings, in 0.6 these are cluster wide. 

 

To start with try  mb one down to something like = 64 or 128, ops to 0.5 and mins to 60 . 

 

What version are you using ? 

 

Aaron



On 23 Nov, 2010,at 10:22 AM, Trung Tran <tran.hieutrung@gmail.com> wr= ote:

Hi,

Is it the min_compaction_threshold and max_compaction_threshold? Do i
need to lower the memtable setting also?

Thanks,
Trung.

On Mon, Nov 22, 2010 at 12:02 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
> Set your columnfamily thresholds lower.
>
> On Mon, Nov 22, 2010 at 12:45 PM, Trung Tran <tran.hieutrung@gmail.com> wrote:
>> Hi,
>>
>> I have a test cluster of 3 nodes, 14Gb of mem in each node,
>> replication factor =3D 3. With default -Xms and Xmx, my nodes are = set to
>> have max-heap-size =3D 7Gb. After initial load with about 200M row= s
>> (write with hector default consistencylevel =3D quorum,) my nodes = memory
>> usage are up to 13.5Gb, show a bunches of GC notifications and
>> eventually crashes with java.lang.OutOfMemoryError: Java heap spac= e.
>>
>> Is there any setting that can help with this scenario?
>>
>> Thanks,
>> Trung.
>>
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support > http://riptano.com
>

This em= ail has been scanned for all known viruses by the Email Protection Agency<= /o:p>

=

This e-mail is confidential and may be= =20=0D=0Aprivileged. It may be read, copied and used only by the intend= ed recipient. No=20=0D=0Acommunication sent by e-mail to or from Eutech= nyx is intended to give rise to=20=0D=0Acontractual or other legal liab= ility, apart from liability which cannot be=20=0D=0Aexcluded under Engl= ish law.

=0D=0A

This email h= as been scanned for all known viruses by www.epagency.net.

=20=0D=0Awww.eutechnyx.com=0D=0AE= utechnyx Limited. Registered in England No:=20=0D=0A2172322

=0D= =0A= --_000_9F83B51B5E3935419B14FC2D1436FC094FE3F55Axchangeeutechny_--