Interface TuningConfig
-
- All Known Subinterfaces:
AppenderatorConfig
- All Known Implementing Classes:
RealtimeTuningConfig
public interface TuningConfig
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.druid.segment.incremental.AppendableIndexSpecDEFAULT_APPENDABLE_INDEXstatic longDEFAULT_AWAIT_SEGMENT_AVAILABILITY_TIMEOUT_MILLISstatic booleanDEFAULT_LOG_PARSE_EXCEPTIONSstatic intDEFAULT_MAX_PARSE_EXCEPTIONSstatic intDEFAULT_MAX_ROWS_IN_MEMORY_BATCHFor batch ingestion, we want to maximize throughput by minimizing the number of incremental persists.static intDEFAULT_MAX_ROWS_IN_MEMORY_REALTIMEFor realtime ingestion, we want to balance ingestion throughput and query performance.static intDEFAULT_MAX_SAVED_PARSE_EXCEPTIONSstatic booleanDEFAULT_SKIP_BYTES_IN_MEMORY_OVERHEAD_CHECK
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.apache.druid.segment.incremental.AppendableIndexSpecgetAppendableIndexSpec()The incremental index implementation to useorg.apache.druid.segment.IndexSpecgetIndexSpec()org.apache.druid.segment.IndexSpecgetIndexSpecForIntermediatePersists()longgetMaxBytesInMemory()Maximum number of bytes (estimated) to store in memory before persisting to local storagedefault longgetMaxBytesInMemoryOrDefault()Maximum number of bytes (estimated) to store in memory before persisting to local storage.intgetMaxRowsInMemory()Maximum number of rows in memory before persisting to local storageorg.apache.druid.indexer.partitions.PartitionsSpecgetPartitionsSpec()
-
-
-
Field Detail
-
DEFAULT_LOG_PARSE_EXCEPTIONS
static final boolean DEFAULT_LOG_PARSE_EXCEPTIONS
- See Also:
- Constant Field Values
-
DEFAULT_APPENDABLE_INDEX
static final org.apache.druid.segment.incremental.AppendableIndexSpec DEFAULT_APPENDABLE_INDEX
-
DEFAULT_MAX_PARSE_EXCEPTIONS
static final int DEFAULT_MAX_PARSE_EXCEPTIONS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_SAVED_PARSE_EXCEPTIONS
static final int DEFAULT_MAX_SAVED_PARSE_EXCEPTIONS
- See Also:
- Constant Field Values
-
DEFAULT_MAX_ROWS_IN_MEMORY_BATCH
static final int DEFAULT_MAX_ROWS_IN_MEMORY_BATCH
For batch ingestion, we want to maximize throughput by minimizing the number of incremental persists. The limit here is really a safety: in case we have a large number of very small rows, we don't want to get overwhelmed by per-row overheads. Mostly, we rely on the bytes limitgetMaxBytesInMemory().- See Also:
- Constant Field Values
-
DEFAULT_MAX_ROWS_IN_MEMORY_REALTIME
static final int DEFAULT_MAX_ROWS_IN_MEMORY_REALTIME
For realtime ingestion, we want to balance ingestion throughput and query performance. Since queries on in-memory data are slower due to usingIncrementalIndexinstead ofQueryableIndex, we cap the row count of in-memory data.- See Also:
- Constant Field Values
-
DEFAULT_SKIP_BYTES_IN_MEMORY_OVERHEAD_CHECK
static final boolean DEFAULT_SKIP_BYTES_IN_MEMORY_OVERHEAD_CHECK
- See Also:
- Constant Field Values
-
DEFAULT_AWAIT_SEGMENT_AVAILABILITY_TIMEOUT_MILLIS
static final long DEFAULT_AWAIT_SEGMENT_AVAILABILITY_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAppendableIndexSpec
org.apache.druid.segment.incremental.AppendableIndexSpec getAppendableIndexSpec()
The incremental index implementation to use
-
getMaxRowsInMemory
int getMaxRowsInMemory()
Maximum number of rows in memory before persisting to local storage
-
getMaxBytesInMemory
long getMaxBytesInMemory()
Maximum number of bytes (estimated) to store in memory before persisting to local storage
-
getMaxBytesInMemoryOrDefault
default long getMaxBytesInMemoryOrDefault()
Maximum number of bytes (estimated) to store in memory before persisting to local storage. If getMaxBytesInMemory() returns 0, the appendable index default will be used.
-
getPartitionsSpec
org.apache.druid.indexer.partitions.PartitionsSpec getPartitionsSpec()
-
getIndexSpec
org.apache.druid.segment.IndexSpec getIndexSpec()
-
getIndexSpecForIntermediatePersists
org.apache.druid.segment.IndexSpec getIndexSpecForIntermediatePersists()
-
-