druid/docs/content/Realtime-Config.md

64 lines
3.5 KiB
Markdown
Raw Normal View History

2014-02-07 14:35:44 -05:00
---
layout: doc_page
---
Realtime Node Configuration
2014-12-11 18:52:26 -05:00
==============================
For general Realtime Node information, see [here](Realtime.html).
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
Runtime Configuration
---------------------
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
The realtime node uses several of the global configs in [Configuration](Configuration.html) and has the following set of configurations as well:
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
### Node Config
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
|Property|Description|Default|
|--------|-----------|-------|
|`druid.host`|The host for the current node. This is used to advertise the current processes location as reachable from another node and should generally be specified such that `http://${druid.host}/` could actually talk to this process|none|
|`druid.port`|This is the port to actually listen on; unless port mapping is used, this will be the same port as is on `druid.host`|none|
|`druid.service`|The name of the service. This is used as a dimension when emitting metrics and alerts to differentiate between the various services|none|
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
### Realtime Operation
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
|Property|Description|Default|
|--------|-----------|-------|
|`druid.publish.type`|Where to publish segments. Choices are "noop" or "metadata".|metadata|
|`druid.realtime.specFile`|File location of realtime specFile.|none|
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
### Storing Intermediate Segments
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
|Property|Description|Default|
|--------|-----------|-------|
|`druid.segmentCache.locations`|Where intermediate segments are stored. The maxSize should always be zero.|none|
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
### Query Configs
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
#### Processing
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
|Property|Description|Default|
|--------|-----------|-------|
|`druid.processing.buffer.sizeBytes`|This specifies a buffer size for the storage of intermediate results. The computation engine in both the Historical and Realtime nodes will use a scratch buffer of this size to do all of their intermediate computations off-heap. Larger values allow for more aggregations in a single pass over the data while smaller values can require more passes depending on the query that is being executed.|1073741824 (1GB)|
|`druid.processing.formatString`|Realtime and historical nodes use this format string to name their processing threads.|processing-%s|
|`druid.processing.numThreads`|The number of processing threads to have available for parallel processing of segments. Our rule of thumb is `num_cores - 1`, which means that even under heavy load there will still be one core available to do background tasks like talking with ZooKeeper and pulling down segments. If only one core is available, this property defaults to the value `1`.|Number of cores - 1 (or 1)|
|`druid.processing.columnCache.sizeBytes`|Maximum size in bytes for the dimension value lookup cache. Any value greater than `0` enables the cache. It is currently disabled by default. Enabling the lookup cache can significantly improve the performance of aggregators operating on dimension values, such as the JavaScript aggregator, or cardinality aggregator, but can slow things down if the cache hit rate is low (i.e. dimensions with few repeating values). Enabling it may also require additional garbage collection tuning to avoid long GC pauses.|`0` (disabled)|
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
#### General Query Configuration
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
##### GroupBy Query Config
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
|Property|Description|Default|
|--------|-----------|-------|
|`druid.query.groupBy.singleThreaded`|Run single threaded group By queries.|false|
|`druid.query.groupBy.maxIntermediateRows`|Maximum number of intermediate rows.|50000|
|`druid.query.groupBy.maxResults`|Maximum number of results.|500000|
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
##### Search Query Config
2014-02-07 14:35:44 -05:00
2014-12-11 18:52:26 -05:00
|Property|Description|Default|
|--------|-----------|-------|
|`druid.query.search.maxSearchLimit`|Maximum number of search results to return.|1000|
2014-02-07 14:35:44 -05:00