mirror of https://github.com/apache/druid.git
include hybrid and caffeine in cache docs and show caffeine as default (#5737)
This commit is contained in:
parent
2c8296f94d
commit
d2b8d880ea
|
@ -19,13 +19,13 @@ for both broker and historical nodes, when defined in the common properties file
|
|||
|
||||
|Property|Possible Values|Description|Default|
|
||||
|--------|---------------|-----------|-------|
|
||||
|`druid.cache.type`|`local`, `memcached`, `hybrid`|The type of cache to use for queries. See below of the configuration options for each cache type|`local`|
|
||||
|`druid.cache.type`|`local`, `memcached`, `hybrid`, `caffeine`|The type of cache to use for queries. See below of the configuration options for each cache type|`caffeine`|
|
||||
|
||||
|
||||
#### Local Cache
|
||||
|
||||
<div class="note caution">
|
||||
DEPRECATED: Use caffeine instead
|
||||
DEPRECATED: Use caffeine (default as of v0.12.0) instead
|
||||
</div>
|
||||
|
||||
The local cache is deprecated in favor of the Caffeine cache, and may be removed in a future version of Druid. The Caffeine cache affords significantly better performance and control over eviction behavior compared to `local` cache, and is recommended in any situation where you are using JRE 8u60 or higher.
|
||||
|
@ -48,7 +48,7 @@ Below are the configuration options known to this module:
|
|||
|
||||
|`runtime.properties`|Description|Default|
|
||||
|--------------------|-----------|-------|
|
||||
|`druid.cache.type`| Set this to `caffeine`|`local`|
|
||||
|`druid.cache.type`| Set this to `caffeine` or leave out parameter|`caffeine`|
|
||||
|`druid.cache.sizeInBytes`|The maximum size of the cache in bytes on heap.|None (unlimited)|
|
||||
|`druid.cache.expireAfter`|The time (in ms) after an access for which a cache entry may be expired|None (no time limit)|
|
||||
|`druid.cache.cacheExecutorFactory`|The executor factory to use for Caffeine maintenance. One of `COMMON_FJP`, `SINGLE_THREAD`, or `SAME_THREAD`|ForkJoinPool common pool (`COMMON_FJP`)|
|
||||
|
|
|
@ -346,7 +346,7 @@ You can enable caching of results at the broker, historical, or realtime level u
|
|||
|
||||
|Property|Possible Values|Description|Default|
|
||||
|--------|---------------|-----------|-------|
|
||||
|`druid.cache.type`|`local`, `memcached`|The type of cache to use for queries.|`local`|
|
||||
|`druid.cache.type`|`local`, `memcached`, `hybrid`, `caffeine`|The type of cache to use for queries.|`caffeine`|
|
||||
|<code>druid.(broker|historical|realtime).cache.unCacheable</code>|All druid query types|All query types to not cache.|["groupBy", "select"]|
|
||||
|<code>druid.(broker|historical|realtime).cache.useCache</code>|true, false|Whether to use cache for getting query results.|false|
|
||||
|<code>druid.(broker|historical|realtime).cache.populateCache</code>|true, false|Whether to populate cache.|false|
|
||||
|
|
Loading…
Reference in New Issue