To use this Apache Druid (incubating) extension, make sure to include
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.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.populateCache in the
runtime.properties file of the process types you want to enable caching on.
|Redis server host||None||yes|
|Redis server port||None||yes|
|Expiration(in milliseconds) for cache entries||24 * 3600 * 1000||no|
|Timeout(in milliseconds) for get cache entries from Redis||2000||no|
|Max total connections to Redis||8||no|
|Max idle connections to Redis||8||no|
|Min idle connections to Redis||0||no|
To enable the redis cache, include this module on the loadList and set
redis in your properties.
In addition to the normal cache metrics, the redis cache implementation also reports the following in both
|Count of requests to redis cache||whatever request to redis will increase request count by 1|