Gian Merlino d007477742
Docusaurus build framework + ingestion doc refresh. (#8311)
* Docusaurus build framework + ingestion doc refresh.

* stick to npm instead of yarn

* fix typos

* restore some _bin

* Adjustments.

* detect and fix redirect anchors

* update anchor lint

* Web-console: remove specific column filters (#8343)

* add clear filter

* update tool kit

* remove usless check

* auto run

* add %

* Fix resource leak (#8337)

* Fix resource leak

* Patch comments

* Enable Spotbugs NP_NONNULL_RETURN_VIOLATION (#8234)

* Fixes from PR review.

* Fix more anchors.

* Preamble nix.

* Fix more anchors, headers

* clean up placeholder page

* add to website lint to travis config

* better broken link checking

* travis fix

* Fixed more broken links

* better redirects

* unfancy catch

* fix LGTM error

* link fixes

* fix md issues

* Addl fixes
2019-08-20 21:48:59 -07:00

2.8 KiB

id title
redis-cache Druid Redis Cache

To use this Apache Druid (incubating) extension, make sure to include druid-redis-cache extension.

A cache implementation for Druid based on Redis.

Below are the configuration options known to this module.

Note that just adding these properties does not enable the cache. You still need to add the druid.<process-type>.cache.useCache and druid.<process-type>.cache.populateCache properties for the processes you want to enable the cache on as described in the cache configuration docs.

A possible configuration would be to keep the properties below in your common.runtime.properties file (present on all processes) and then add druid.<nodetype>.cache.useCache and druid.<nodetype>.cache.populateCache in the runtime.properties file of the process types you want to enable caching on.

Configuration

common.runtime.properties Description Default Required
druid.cache.host Redis server host None yes
druid.cache.port Redis server port None yes
druid.cache.expiration Expiration(in milliseconds) for cache entries 24 * 3600 * 1000 no
druid.cache.timeout Timeout(in milliseconds) for get cache entries from Redis 2000 no
druid.cache.maxTotalConnections Max total connections to Redis 8 no
druid.cache.maxIdleConnections Max idle connections to Redis 8 no
druid.cache.minIdleConnections Min idle connections to Redis 0 no

Enabling

To enable the redis cache, include this module on the loadList and set druid.cache.type to redis in your properties.

Metrics

In addition to the normal cache metrics, the redis cache implementation also reports the following in both total and delta

Metric Description Normal value
query/cache/redis/*/requests Count of requests to redis cache whatever request to redis will increase request count by 1