[ 
https://issues.apache.org/jira/browse/CASSANDRA-3143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098026#comment-13098026
 ] 

Pavel Yaskevich edited comment on CASSANDRA-3143 at 9/6/11 8:41 PM:
--------------------------------------------------------------------

I think following steps are going to be appropriate to archive the goal:

 - row_cache_provider should be moved to global config
 - {key/row}_cache_save_period parameters should be moved to global config
 - {keys/rows}_cached should be moved to the global config
 - new o.a.c.service.CacheService instance to hold key and row caches as static 
members initialized at startup
   that service will be also responsible for cache save to disk operations.
 - new CacheSegment class should be issued from global cache for each of the 
ColumnFamilyStores registered in the system to be responsible for put/get 
operations, flush/read from disk.
 - cache sizes should be converted to memory units to support precise weighting 
of the cache using Weigher backed by Jamm

      was (Author: xedin):
    I think following steps are going to be appropriate to archive the goal:

 - row_cache_provider should be moved to global config
 - {key/row}_cache_save_period parameters should be moved to global config
 - new o.a.c.service.CacheService instance to hold key and row caches as static 
members initialized at startup
   that service will be also responsible for cache save to disk operations.
 - new CacheSegment class should be issued from global cache for each of the 
ColumnFamilyStores registered in the system to be responsible for put/get 
operations, statistics such as capacity/size, extend/shrink operations on 
segment capacity, flush/read from disk.
 - cache sizes should be converted to memory units to support precise weighting 
of the cache using Weigher backed by Jamm
  
> Global caches (key/row)
> -----------------------
>
>                 Key: CASSANDRA-3143
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3143
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Pavel Yaskevich
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>              Labels: Core
>             Fix For: 1.1
>
>
> Caches are difficult to configure well as ColumnFamilies are added, similar 
> to how memtables were difficult pre-CASSANDRA-2006.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to