Merge pull request #1572 from himanshug/cache_doc_update

update doc with useCache and populateCache flags
This commit is contained in:
Fangjin Yang 2015-07-28 11:50:13 -10:00
commit f4567c995c
1 changed files with 5 additions and 3 deletions

View File

@ -215,18 +215,20 @@ This deep storage is used to interface with Cassandra.
### Caching ### Caching
If you are using a distributed cache such as memcached, you can include the configuration here. You can enable caching of results at the broker/historical using following configurations.
|Property|Description|Default| |Property|Description|Default|
|--------|-----------|-------| |--------|-----------|-------|
|`druid.cache.type`|`local`, `memcached`|The type of cache to use for queries.|`local`| |`druid.cache.type`|`local`, `memcached`|The type of cache to use for queries.|`local`|
|`druid.cache.unCacheable`|All druid query types|All query types to not cache.|["groupBy", "select"]| |`druid.(broker/historical).cache.unCacheable`|All druid query types|All query types to not cache.|["groupBy", "select"]|
|`druid.(broker/historical).cache.useCache`|Whether to use cache for getting query results.|false|
|`druid.(broker/historical).cache.populateCache`|Whether to populate cache.|false|
#### Local Cache #### Local Cache
|Property|Description|Default| |Property|Description|Default|
|--------|-----------|-------| |--------|-----------|-------|
|`druid.cache.sizeInBytes`|Maximum cache size in bytes. Zero disables caching.|0| |`druid.cache.sizeInBytes`|Maximum cache size in bytes. You must set this if you enabled populateCache/useCache, or else cache size of zero wouldn't really cache anything.|0|
|`druid.cache.initialSize`|Initial size of the hashtable backing the cache.|500000| |`druid.cache.initialSize`|Initial size of the hashtable backing the cache.|500000|
|`druid.cache.logEvictionCount`|If non-zero, log cache eviction every `logEvictionCount` items.|0| |`druid.cache.logEvictionCount`|If non-zero, log cache eviction every `logEvictionCount` items.|0|