Slackbot
02/01/2023, 5:52 PMSergio Ferragut
02/01/2023, 5:56 PMSergio Ferragut
02/01/2023, 6:04 PMdruid.indexer.fork.property.druid.processing.numThreads is 1 or 2. 10 seems high, but I doubt that is the issue.Sergio Ferragut
02/01/2023, 6:10 PMdruid.processing.numThreads which should be set to the same value as the druid.worker.capacity which should be set to (CPU cores - 1) if the Indexer runs on its own pod.Sergio Ferragut
02/01/2023, 6:11 PMYounes Naguib
02/01/2023, 6:13 PMYounes Naguib
02/01/2023, 6:18 PMYounes Naguib
02/01/2023, 6:18 PMSergio Ferragut
02/01/2023, 6:30 PMYounes Naguib
02/01/2023, 7:12 PM{
"type": "index_parallel",
"spec": {
"dataSchema": {
"dataSource": "test",
"timestampSpec": {
"column": "timestamp_hourly",
"format": "posix",
"name": "__time"
},
"dimensionsSpec": {
"dimensions": [
...
]
},
"metricsSpec": [ { "type" : "arrayOfDoublesSketch", ...},{ "type" : "longSum"...},{"type":"count"...}],
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "hour",
"queryGranularity": "hour",
"rollup": true
}
},
"ioConfig": {
"type": "index_parallel",
"inputSource": {
"type": "s3",
"prefixes": ["s3://...."]
},
"inputFormat": {
"type": "parquet"
},
"appendToExisting": false
},
"tuningConfig": {
"type": "index_parallel",
"maxNumConcurrentSubTasks":4,
"maxRowsPerSegment": 20000,
"maxRowsInMemory": 20000
}
}
}Sergio Ferragut
02/01/2023, 7:59 PMYounes Naguib
02/01/2023, 8:19 PMYounes Naguib
02/02/2023, 2:23 AM"splitHintSpec": {
"maxSplitSize": 1000000,
"type": "maxSize"
},Sergio Ferragut
02/02/2023, 5:32 PMYounes Naguib
02/03/2023, 1:45 PMSergio Ferragut
02/03/2023, 4:02 PMSergio Ferragut
02/05/2023, 11:34 PMdynamic, no splinthint - 1 index_parallel task, 2 single_phase_sub_task
hashed, no splithint - 1 index_parallel, 2 partial_dimension_cardinality, 2 partial_index_generate, 1 partial_index_generic_merge
I did not have to change the split hint to get parallel tasks, I did need two input files.
testing 2 small files, maxNumConcurrentSubtasks = 3
hashed, no splithint - 1 index_parallel, 2 partial_dimension_cardinality, 2 partial_index_generate, 1 partial_index_generic_merge
In this case it was limited by the number of input files, as expected.
testing 3 small files, maxNumConcurrentSubtasks = 3
dynamic, no splithint - 1 index_parallel, 3 single_phase_sub_task
hashed, no splithint - 1 index_parallel, 3 partial_dimension_cardinality, 3 partial_index_generate, 1 partial_index_generic_merge
Verified by adding another file and I see 3 tasks running in the input processing phases for either dynamic or hashed partitioning
I specified the list of files as a list of individual URIs, not sure if this has an effect. I'll try testing with like you did S3 prefixes instead.Sergio Ferragut
02/06/2023, 1:32 AMYounes Naguib
02/06/2023, 1:31 PM