Enable the indices request cache by default

Now we have 16870 we can enable the request cache by default. The caching can still be disabled on a per request basis and can still be disabled in the settings, only the default value has changed. For now this is done regardless of whether the shard is active or inactive.

Closes #17134
This commit is contained in:
Colin Goodheart-Smithe 2016-03-17 09:06:32 +00:00
parent 0f6b8dd848
commit 30cdc11d75
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public final class IndicesRequestCache extends AbstractComponent implements Remo
* since we are checking on the cluster state IndexMetaData always.
*/
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 =
Setting.byteSizeSetting("indices.requests.cache.size", "1%", Property.NodeScope);
public static final Setting<TimeValue> INDICES_CACHE_QUERY_EXPIRE =