Slackbot
02/03/2023, 3:43 AMBrandon Tan
02/03/2023, 3:47 AMNick Marsh
02/03/2023, 3:49 AMNick Marsh
02/03/2023, 3:50 AMBrandon Tan
02/03/2023, 3:51 AMNick Marsh
02/03/2023, 3:53 AMBrandon Tan
02/03/2023, 4:00 AMNick Marsh
02/03/2023, 4:01 AMBrandon Tan
02/03/2023, 4:03 AMNick Marsh
02/03/2023, 4:05 AM{
"type": "compact",
"dataSource": "xxx",
"ioConfig": {
"type": "compact",
"inputSpec": {
"type": "interval",
"interval": "2023-01-31T16:00:00.000Z/2023-01-31T17:00:00.000Z"
}
}
}
and now it’s reporting the payload as:
{
"type": "compact",
"id": "compact_xxx_jfljkcjb_2023-02-03T00:52:28.068Z",
"resource": {
"availabilityGroup": "compact_xxx_jfljkcjb_2023-02-03T00:52:28.068Z",
"requiredCapacity": 1
},
"dataSource": "xxx",
"ioConfig": {
"type": "compact",
"inputSpec": {
"type": "interval",
"interval": "2023-01-31T16:00:00.000Z/2023-01-31T17:00:00.000Z",
"sha256OfSortedSegmentIds": null
},
"dropExisting": false
},
"dimensionsSpec": null,
"metricsSpec": null,
"granularitySpec": null,
"tuningConfig": null,
"context": {
"forceTimeChunkLock": true,
"useLineageBasedSegmentAllocation": true
},
"groupId": "compact_xxx_jfljkcjb_2023-02-03T00:52:28.068Z"
}Brandon Tan
02/03/2023, 4:22 AMPOST /druid/coordinator/v1/config/compaction/taskslots?ratio={someRatio}&max={someMaxSlots}
https://druid.apache.org/docs/latest/operations/api-reference.html#automatic-compaction-configuration
It increases the capacity of the compaction tasksNick Marsh
02/03/2023, 4:26 AMBrandon Tan
02/03/2023, 4:28 AMtuningConfig is a parameter you can look into:
{
"type": "compact",
"id": <task_id>,
"dataSource": <task_datasource>,
"ioConfig": <IO config>,
"dimensionsSpec": <custom dimensionsSpec>,
"transformSpec": <custom transformSpec>,
"metricsSpec": <custom metricsSpec>,
"tuningConfig": <parallel indexing task tuningConfig>,
"granularitySpec": <compaction task granularitySpec>,
"context": <task context>
}Nick Marsh
02/03/2023, 4:31 AMBrandon Tan
02/03/2023, 4:34 AMKyle Hoondert
02/03/2023, 10:59 AMsplitHintSpec if you want more parallelism. Decreasing the maxSplitSize will make more smaller jobs. It’s in the tuningConfig section and looks like
"splitHintSpec": {
"type": "maxSize",
"maxSplitSize": 2147483648,
"maxNumFiles": 1000
}
https://druid.apache.org/docs/latest/ingestion/native-batch.html#split-hint-specNick Marsh
02/07/2023, 1:16 AM