浏览代码

Merge pull request #17162 from colings86/enhancement/enableRequestCacheDefault

Enable the indices request cache by default
Colin Goodheart-Smithe 9 年之前
父节点
当前提交
c62eff0ac9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/src/main/java/org/elasticsearch/indices/IndicesRequestCache.java

+ 1 - 1
core/src/main/java/org/elasticsearch/indices/IndicesRequestCache.java

@@ -70,7 +70,7 @@ public final class IndicesRequestCache extends AbstractComponent implements Remo
      * since we are checking on the cluster state IndexMetaData always.
      * since we are checking on the cluster state IndexMetaData always.
      */
      */
     public static final Setting<Boolean> INDEX_CACHE_REQUEST_ENABLED_SETTING =
     public static final Setting<Boolean> INDEX_CACHE_REQUEST_ENABLED_SETTING =
-        Setting.boolSetting("index.requests.cache.enable", false, Property.Dynamic, Property.IndexScope);
+        Setting.boolSetting("index.requests.cache.enable", true, Property.Dynamic, Property.IndexScope);
     public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE =
     public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE =
         Setting.byteSizeSetting("indices.requests.cache.size", "1%", Property.NodeScope);
         Setting.byteSizeSetting("indices.requests.cache.size", "1%", Property.NodeScope);
     public static final Setting<TimeValue> INDICES_CACHE_QUERY_EXPIRE =
     public static final Setting<TimeValue> INDICES_CACHE_QUERY_EXPIRE =