Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 70985 invoked from network); 15 Apr 2011 14:20:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2011 14:20:23 -0000 Received: (qmail 8729 invoked by uid 500); 15 Apr 2011 14:20:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 8705 invoked by uid 500); 15 Apr 2011 14:20:21 -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 8693 invoked by uid 99); 15 Apr 2011 14:20:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2011 14:20:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.161.172] (HELO mail-gx0-f172.google.com) (209.85.161.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Apr 2011 14:20:12 +0000 Received: by gxk19 with SMTP id 19so1381360gxk.31 for ; Fri, 15 Apr 2011 07:19:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.183.17 with SMTP id g17mr2437783ybf.215.1302877190889; Fri, 15 Apr 2011 07:19:50 -0700 (PDT) Sender: scode@scode.org Received: by 10.150.204.17 with HTTP; Fri, 15 Apr 2011 07:19:50 -0700 (PDT) X-Originating-IP: [212.181.83.218] In-Reply-To: <1302876886.2128.24.camel@Avalon> References: <1302876886.2128.24.camel@Avalon> Date: Fri, 15 Apr 2011 16:19:50 +0200 X-Google-Sender-Auth: pLNwkjxgfpuA93cxBol9Yzbv9Ck Message-ID: Subject: Re: How to warm up a cold node From: Peter Schuller To: user@cassandra.apache.org Cc: =?UTF-8?Q?H=C3=A9ctor_Izquierdo_Seliva?= Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org > Hi everyone, is there any recommended procedure to warm up a node before > bringing it up? Currently the only out-of-the-box support for warming up caches is that implied by the key cache and row cache, which will pre-heat on start-up. Indexes will be indirectly preheated by index sampling, to the extent that they operating system retains them in page cache. If you're wanting to pre-heat sstables there's currently no way to do that (but it's a useful feature to have). Pragmatically, you can script something that e.g. does "cat path/to/keyspace/* > /dev/null" or similar. But that only works if the total database size fits reasonably well in page cache. Pre-heating sstables on a per-cf basis on start-up would be a nice feature to have. -- / Peter Schuller