You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2019/03/01 14:09:19 UTC

svn commit: r1854592 - in /kylin/site: cn/docs/install/configuration.html docs/install/configuration.html feed.xml

Author: lidong
Date: Fri Mar  1 14:09:19 2019
New Revision: 1854592

URL: http://svn.apache.org/viewvc?rev=1854592&view=rev
Log:
Update doc for distributed cache

Modified:
    kylin/site/cn/docs/install/configuration.html
    kylin/site/docs/install/configuration.html
    kylin/site/feed.xml

Modified: kylin/site/cn/docs/install/configuration.html
URL: http://svn.apache.org/viewvc/kylin/site/cn/docs/install/configuration.html?rev=1854592&r1=1854591&r2=1854592&view=diff
==============================================================================
--- kylin/site/cn/docs/install/configuration.html (original)
+++ kylin/site/cn/docs/install/configuration.html Fri Mar  1 14:09:19 2019
@@ -864,11 +864,11 @@ Kylin 可以使用三ç§
 
 <h3 id="distributed-cache">使用 Memcached 作为 Kylin 查询缓存</h3>
 
-<p>从 v2.6.0,Kylin 可以使用 Memcached 作为查询缓存。想要启用该功能,您需要执行以下步骤:</p>
+<p>从 v2.6.0,Kylin 可以使用 Memcached 作为查询缓存,一起引入的还有一系列缓存增强 (<a href="https://issues.apache.org/jira/browse/KYLIN-2895">KYLIN-2895</a>)。想要启用该功能,您需要执行以下步骤:</p>
 
 <ol>
   <li>
-    <p>在一个或多个节点上安装 Memcached;</p>
+    <p>在一个或多个节点上安装 Memcached (最新稳定版 v1.5.12); 如果资源够的话,可以在每个安装 Kylin 的节点上安装 Memcached。</p>
   </li>
   <li>
     <p>按照如下所示方式修改 $KYLIN_HOME/tomcat/webapps/kylin/WEB-INF/classes 目录下的 applicationContext.xml 的内容:</p>
@@ -911,9 +911,9 @@ kylin.cache.memcached.hosts=memcached1:1
 
 <ul>
   <li><code class="highlighter-rouge">kylin.query.cache-enabled</code> 是否开启查询缓存的总开关,默认值为 <code class="highlighter-rouge">true</code>。</li>
-  <li><code class="highlighter-rouge">kylin.query.lazy-query-enabled</code> 是否为短时间内重复发送的查询,等待并重用前次查询的结果,默认为 false。</li>
-  <li><code class="highlighter-rouge">kylin.query.cache-signature-enabled</code> 是否为缓存进行签名检查,依据签名变化来决定缓存的有效性。缓存的签名由项目中的 cube / hybrid 的状态以及它们的最后构建时间等来动态计算(在缓存被记录时)。</li>
-  <li><code class="highlighter-rouge">kylin.query.segment-cache-enabled</code> 是否在 segment 级别缓存从 存储引擎(HBase)返回的数据,默认为false;设置为 true,且启用 memcached 分布式缓存开启的时候,此功能才会生效。可为频繁构建的 cube (如 streaming cube)提升缓存命中率,从而提升性能。</li>
+  <li><code class="highlighter-rouge">kylin.query.lazy-query-enabled</code> 是否为短时间内重复发送的查询,等待并重用前次查询的结果,默认为 <code class="highlighter-rouge">false</code>。</li>
+  <li><code class="highlighter-rouge">kylin.query.cache-signature-enabled</code> 是否为缓存进行签名检查,依据签名变化来决定缓存的有效性。缓存的签名由项目中的 cube / hybrid 的状态以及它们的最后构建时间等来动态计算(在缓存被记录时),默认为 <code class="highlighter-rouge">false</code>,高度推荐设置为 <code class="highlighter-rouge">true</code>。</li>
+  <li><code class="highlighter-rouge">kylin.query.segment-cache-enabled</code> 是否在 segment 级别缓存从 存储引擎(HBase)返回的数据,默认为 <code class="highlighter-rouge">false</code>;设置为 <code class="highlighter-rouge">true</code>,且启用 Memcached 分布式缓存开启的时候,此功能才会生效。可为频繁构建的 cube (如 streaming cube)提升缓存命中率,从而提升性能。</li>
   <li><code class="highlighter-rouge">kylin.cache.memcached.hosts</code> 指明了 memcached 的机器名和端口。</li>
 </ul>
 

Modified: kylin/site/docs/install/configuration.html
URL: http://svn.apache.org/viewvc/kylin/site/docs/install/configuration.html?rev=1854592&r1=1854591&r2=1854592&view=diff
==============================================================================
--- kylin/site/docs/install/configuration.html (original)
+++ kylin/site/docs/install/configuration.html Fri Mar  1 14:09:19 2019
@@ -7044,11 +7044,11 @@ Kylin can use three types of compression
 
 <h3 id="distributed-cache">Distributed query cache with Memcached</h3>
 
-<p>From v2.6.0, Kylin can use Memcached as the cache. To enable this feature, you need to do the following steps:</p>
+<p>From v2.6.0, Kylin can use Memcached as the distributed cache, and also there are some improvements on the cache policy (<a href="https://issues.apache.org/jira/browse/KYLIN-2895">KYLIN-2895</a>). To enable these new features, you need to do the following steps:</p>
 
 <ol>
   <li>
-    <p>Install Memcached on 1 or multiple nodes;</p>
+    <p>Install Memcached (latest v1.5.12) on 1 or multiple nodes; You can install it on all Kylin nodes if resource is enough;</p>
   </li>
   <li>
     <p>Modify the applicationContext.xml under $KYLIN_HOME/tomcat/webapps/kylin/WEB-INF/classes directory, comment the following code:</p>
@@ -7090,8 +7090,8 @@ kylin.cache.memcached.hosts=memcached1:1
 <ul>
   <li><code class="highlighter-rouge">kylin.query.cache-enabled</code> controls the on-off of query cache, its default value is <code class="highlighter-rouge">true</code>.</li>
   <li><code class="highlighter-rouge">kylin.query.lazy-query-enabled</code> : whether to lazily answer the queries that be sent repeatedly in a short time (hold it until the previous query be returned, and then reuse the result); The default value is <code class="highlighter-rouge">false</code>.</li>
-  <li><code class="highlighter-rouge">kylin.query.cache-signature-enabled</code> : whether to use the signature of a query to determine the cache’s validity. The signature is calculated by the cube/hybrid list of the project, their last build time and other information (at the moment when cache is persisted); It’s default value is <code class="highlighter-rouge">false</code>.</li>
-  <li><code class="highlighter-rouge">kylin.query.segment-cache-enabled</code> : whether to cache the segment level returned data (from HBase storage) into Memcached. This feature is mainly for the cube that built very frequently (e.g, streaming cube, whose last build time always changed, the whole query cache is very likely be cleaned). This only works when Memcached configured. It’s default value is <code class="highlighter-rouge">false</code>.</li>
+  <li><code class="highlighter-rouge">kylin.query.cache-signature-enabled</code> : whether to use the signature of a query to determine the cache’s validity. The signature is calculated by the cube/hybrid list of the project, their last build time and other information (at the moment when cache is persisted); It’s default value is <code class="highlighter-rouge">false</code>, highly recommend to set it to <code class="highlighter-rouge">true</code>.</li>
+  <li><code class="highlighter-rouge">kylin.query.segment-cache-enabled</code> : whether to cache the segment level returned data (from HBase storage) into Memcached. This feature is mainly for the cube that built very frequently (e.g, streaming cube, whose last build time always changed a couple minutes, the whole SQL statement level cache is very likely be cleaned; in this case, the by-segment cache can reduce the I/O). This only works when Memcached configured, the default value is <code class="highlighter-rouge">false</code>.</li>
   <li><code class="highlighter-rouge">kylin.cache.memcached.hosts</code>: a list of memcached node and port, connected with comma.</li>
 </ul>
 

Modified: kylin/site/feed.xml
URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1854592&r1=1854591&r2=1854592&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Fri Mar  1 14:09:19 2019
@@ -19,8 +19,8 @@
     <description>Apache Kylin Home</description>
     <link>http://kylin.apache.org/</link>
     <atom:link href="http://kylin.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Wed, 27 Feb 2019 17:39:34 -0800</pubDate>
-    <lastBuildDate>Wed, 27 Feb 2019 17:39:34 -0800</lastBuildDate>
+    <pubDate>Fri, 01 Mar 2019 05:59:24 -0800</pubDate>
+    <lastBuildDate>Fri, 01 Mar 2019 05:59:24 -0800</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>