Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A18A18E3A for ; Wed, 11 Nov 2015 16:47:11 +0000 (UTC) Received: (qmail 35031 invoked by uid 500); 11 Nov 2015 16:47:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 34983 invoked by uid 500); 11 Nov 2015 16:47:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 34634 invoked by uid 99); 11 Nov 2015 16:47:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2015 16:47:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 294DB2C1F75 for ; Wed, 11 Nov 2015 16:47:11 +0000 (UTC) Date: Wed, 11 Nov 2015 16:47:11 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6574) key cache shrinks on restart MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Yeschenko updated CASSANDRA-6574: ----------------------------------------- Priority: Minor (was: Major) > key cache shrinks on restart > ---------------------------- > > Key: CASSANDRA-6574 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6574 > Project: Cassandra > Issue Type: Improvement > Environment: 1.2.12 + patches > Reporter: Chris Burroughs > Priority: Minor > Attachments: key-cache-entries.png, key-cache-rate.png, key-cache.png > > > During a rolling restart the key number of entries the number of entries in the key cache is shrinking. That is far fewer entries are loaded than are saved. This has obvious bad consequences for post restart performance. > {noformat} > key_cache_size_in_mb: 48 > key_cache_save_period: 900 > # Number of keys from the key cache to save > # Disabled by default, meaning all keys are going to be saved > # key_cache_keys_to_save: 100 > row_cache_size_in_mb: 256 > row_cache_save_period: 300 > row_cache_keys_to_save: 50000 > row_cache_provider: SerializingCacheProvider > saved_caches_directory: /home/cassandra/shared/saved_caches > {noformat} > Same log lines: > {noformat} > INFO [CompactionExecutor:24543] 2014-01-11 11:35:47,783 AutoSavingCache.java (line 289) Saved KeyCache (398028 items) in 1252 ms > *** RESTART *** > INFO [main] 2014-01-11 11:44:59,608 AutoSavingCache.java (line 140) reading saved cache /home/cassandra/shared/saved_caches/ks-cf1-KeyCache-b.db > INFO [main] 2014-01-11 11:45:00,509 AutoSavingCache.java (line 140) reading saved cache /home/cassandra/shared/saved_caches/ks-cf2-RowCache-b.db > INFO [main] 2014-01-11 12:02:48,675 ColumnFamilyStore.java (line 452) completed loading (1068166 ms; 50000 keys) row cache for ks.cf2 > INFO [main] 2014-01-11 12:02:48,769 CassandraDaemon.java (line 291) completed pre-loading (67760 keys) key cache. > INFO [main] 2014-01-11 12:02:48,769 CassandraDaemon.java (line 294) completed pre-loading (50000 keys) row cache. > INFO [CompactionExecutor:1] 2014-01-11 12:02:49,133 AutoSavingCache.java (line 289) Saved RowCache (50000 items) in 266 ms > INFO [CompactionExecutor:2] 2014-01-11 12:02:49,575 AutoSavingCache.java (line 289) Saved KeyCache (67760 items) in 707 ms > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)