Hi all,
I have the following in my Kafka ingestion spec:
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "MONTH",
"queryGranularity": {
"type": "none"
},
"rollup": false,
"intervals": []
},
And then I have this autocompaction spec:
{
"dataSource": "AxonProdTelegrafEvent",
"taskPriority": 25,
"inputSegmentSizeBytes": 100000000000000,
"maxRowsPerSegment": null,
"skipOffsetFromLatest": "P1M",
"tuningConfig": {
"maxRowsInMemory": null,
"appendableIndexSpec": null,
"maxBytesInMemory": null,
"maxTotalRows": null,
"splitHintSpec": null,
"partitionsSpec": {
"type": "dynamic",
"maxRowsPerSegment": 5000000,
"maxTotalRows": null
},
"indexSpec": null,
"indexSpecForIntermediatePersists": null,
"maxPendingPersists": null,
"pushTimeout": null,
"segmentWriteOutMediumFactory": null,
"maxNumConcurrentSubTasks": null,
"maxRetry": null,
"taskStatusCheckPeriodMs": null,
"chatHandlerTimeout": null,
"chatHandlerNumRetries": null,
"maxNumSegmentsToMerge": null,
"totalNumMergeTasks": null,
"maxColumnsToMerge": null,
"type": "index_parallel",
"forceGuaranteedRollup": false
},
"granularitySpec": {
"segmentGranularity": "MONTH",
"queryGranularity": {
"type": "none"
},
"rollup": null
},
"dimensionsSpec": null,
"metricsSpec": null,
"transformSpec": null,
"ioConfig": null,
"taskContext": null
}
Question is if my ingestion and compaction is the same do I need to autocompact?
Also, my ingestion could be bursty (not at the same rate always). Should I then rather have a lower ingestion spec of DAY and then compact to MONTH after the first month? Even at MONTH my segment sizes are quite small, not even 100Meg.