Slackbot
02/21/2023, 1:28 PMSrikanth Kantamaneni
02/21/2023, 1:30 PM"tuningConfig": {
"type": "index_parallel",
"appendableIndexSpec": {
"type": "onheap"
},
"maxRowsInMemory": 100000,
"maxBytesInMemory": -1,
"maxTotalRows": null,
"numShards": null,
"splitHintSpec": null,
"partitionsSpec": {
"type": "hashed",
"numShards": null,
"partitionDimensions": [
"id",
"actual_event_time"
],
"partitionFunction": "murmur3_32_abs",
"targetRowsPerSegment": 3000000
},
"indexSpec": {
"bitmap": {
"type": "roaring",
"compressRunOnSerialization": true
},
"dimensionCompression": "lz4",
"metricCompression": "lz4",
"longEncoding": "longs",
"segmentLoader": null
},
"indexSpecForIntermediatePersists": {
"bitmap": {
"type": "roaring",
"compressRunOnSerialization": true
},
"dimensionCompression": "lz4",
"metricCompression": "lz4",
"longEncoding": "longs",
"segmentLoader": null
},
"maxPendingPersists": 0,
"forceGuaranteedRollup": true,
"reportParseExceptions": false,
"pushTimeout": 0,
"segmentWriteOutMediumFactory": null,
"maxNumConcurrentSubTasks": 16,
"maxRetry": 3,
"taskStatusCheckPeriodMs": 1000,
"chatHandlerTimeout": "PT10S",
"chatHandlerNumRetries": 5,
"maxNumSegmentsToMerge": 100,
"totalNumMergeTasks": 10,
"logParseExceptions": false,
"maxParseExceptions": 2147483647,
"maxSavedParseExceptions": 0,
"maxColumnsToMerge": -1,
"buildV9Directly": true,
"partitionDimensions": [
"id",
"actual_event_time"
]
}
Tuning config from ingestion task:
"tuningConfig" : {
"type" : "index_parallel",
"maxRowsPerSegment" : 3000000,
"appendableIndexSpec" : {
"type" : "onheap"
},
"maxRowsInMemory" : 100000,
"maxBytesInMemory" : -1,
"maxTotalRows" : null,
"numShards" : null,
"splitHintSpec" : null,
"partitionsSpec" : {
"type" : "hashed",
"numShards" : null,
"partitionDimensions" : [ "id", "actual_event_time" ],
"partitionFunction" : "murmur3_32_abs",
"maxRowsPerSegment" : 3000000
},
"indexSpec" : {
"bitmap" : {
"type" : "roaring",
"compressRunOnSerialization" : true
},
"dimensionCompression" : "lz4",
"metricCompression" : "lz4",
"longEncoding" : "longs",
"segmentLoader" : null
},
"indexSpecForIntermediatePersists" : {
"bitmap" : {
"type" : "roaring",
"compressRunOnSerialization" : true
},
"dimensionCompression" : "lz4",
"metricCompression" : "lz4",
"longEncoding" : "longs",
"segmentLoader" : null
},
"maxPendingPersists" : 0,
"forceGuaranteedRollup" : true,
"reportParseExceptions" : false,
"pushTimeout" : 0,
"segmentWriteOutMediumFactory" : null,
"maxNumConcurrentSubTasks" : 16,
"maxRetry" : 3,
"taskStatusCheckPeriodMs" : 1000,
"chatHandlerTimeout" : "PT10S",
"chatHandlerNumRetries" : 5,
"maxNumSegmentsToMerge" : 100,
"totalNumMergeTasks" : 10,
"logParseExceptions" : false,
"maxParseExceptions" : 2147483647,
"maxSavedParseExceptions" : 0,
"maxColumnsToMerge" : -1,
"buildV9Directly" : true,
"partitionDimensions" : [ "id", "actual_event_time" ]
}John Kowtko
02/21/2023, 1:41 PMSrikanth Kantamaneni
02/21/2023, 1:48 PMSrikanth Kantamaneni
02/21/2023, 1:49 PMhashedSrikanth Kantamaneni
02/21/2023, 1:51 PM"shardSpec": {
"type": "hashed",
"partitionNum": 0,
"partitions": 1,
"bucketId": 0,
"numBuckets": 1,
"partitionDimensions": [
"id",
"actual_event_time"
],
"partitionFunction": "murmur3_32_abs"
}John Kowtko
02/21/2023, 1:52 PMJohn Kowtko
02/21/2023, 1:55 PMSrikanth Kantamaneni
02/21/2023, 2:08 PM17084 distinct id values and 31 distinct actual_event_time values in this time chunk.Anil Gupta
02/21/2023, 2:55 PMAnil Gupta
02/21/2023, 2:57 PMSrikanth Kantamaneni
02/21/2023, 3:19 PMAnil Gupta
02/21/2023, 3:26 PMAnil Gupta
02/21/2023, 3:27 PMGian Merlino
02/22/2023, 12:51 PMCLUSTERED BY, like CLUSTERED BY id, actual_event_time
you can read more at: https://druid.apache.org/docs/latest/multi-stage-query/concepts.html