You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by Wangdp <ap...@163.com> on 2018/03/30 06:24:50 UTC

What algorithm is the caching policy?

Hi:

   What algorithm is the caching policy in kylin? 
       FIFO,LRU,LFU,Other?
  And what about the effectiveness of caching time?



apache_dev@163.com

Re: Re: What algorithm is the caching policy?

Posted by Wangdp <ap...@163.com>.
ok.
Thinks .



apache_dev@163.com
 
From: magang
Date: 2018-03-30 15:34
To: dev
Subject: Re: What algorithm is the caching policy?
Kylin use ehcache as the cache solution, by default, it use LRU and
timeToIdleSeconds is set to 1 day. All are configurable in ehcache.xml, by
default it is:
 
<ehcache maxBytesLocalHeap="2048M">
    <cache name="StorageCache"
           eternal="false"
           timeToIdleSeconds="86400"
           memoryStoreEvictionPolicy="LRU"
            >
        <persistence strategy="none"/>
    </cache>
    <cache name="ExceptionQueryCache"
           eternal="false"
           timeToIdleSeconds="86400"
           memoryStoreEvictionPolicy="LRU"
            >
        <persistence strategy="none"/>
    </cache>
</ehcache>
 
--
Sent from: http://apache-kylin.74782.x6.nabble.com/

Re: What algorithm is the caching policy?

Posted by magang <mg...@163.com>.
Kylin use ehcache as the cache solution, by default, it use LRU and
timeToIdleSeconds is set to 1 day. All are configurable in ehcache.xml, by
default it is:

<ehcache maxBytesLocalHeap="2048M">
    <cache name="StorageCache"
           eternal="false"
           timeToIdleSeconds="86400"
           memoryStoreEvictionPolicy="LRU"
            >
        <persistence strategy="none"/>
    </cache>
    <cache name="ExceptionQueryCache"
           eternal="false"
           timeToIdleSeconds="86400"
           memoryStoreEvictionPolicy="LRU"
            >
        <persistence strategy="none"/>
    </cache>
</ehcache>

--
Sent from: http://apache-kylin.74782.x6.nabble.com/