layout: doc_page

Broker Node Configuration

For general Broker Node information, see here.

Runtime Configuration

The broker module uses several of the default modules in Configuration and has the following set of configurations as well:

PropertyPossible ValuesDescriptionDefault
druid.broker.balancer.typerandom, connectionCountDetermines how the broker balances connections to historical nodes. random choose randomly, connectionCount picks the node with the fewest number of active connections torandom
druid.broker.select.tierhighestPriority, lowestPriority, customIf segments are cross-replicated across tiers in a cluster, you can tell the broker to prefer to select segments in a tier with a certain priority.highestPriority
druid.broker.select.tier.custom.prioritiesAn array of integer priorities.Select servers in tiers with a custom priority list.None
druid.broker.cache.typelocal, memcachedThe type of cache to use for queries.local
druid.broker.cache.unCacheableAll druid query typesAll query types to not cache.[“groupBy”, “select”]

Local Cache

PropertyDescriptionDefault
druid.broker.cache.sizeInBytesMaximum cache size in bytes. Zero disables caching.0
druid.broker.cache.initialSizeInitial size of the hashtable backing the cache.500000
druid.broker.cache.logEvictionCountIf non-zero, log cache eviction every logEvictionCount items.0

Memcache

PropertyDescriptionDefault
druid.broker.cache.expirationMemcached expiration time.2592000 (30 days)
druid.broker.cache.timeoutMaximum time in milliseconds to wait for a response from Memcached.500
druid.broker.cache.hostsCommand separated list of Memcached hosts <host:port>.none
druid.broker.cache.maxObjectSizeMaximum object size in bytes for a Memcached object.52428800 (50 MB)
druid.broker.cache.memcachedPrefixKey prefix for all keys in Memcached.druid