Hello guys, having had our Druid cluster up and running without downtime for years. It's long overdue an upgrade and reconfiguration in terms of data storage/query efficiency however.
As it stands there are just over 2.3B rows of event data, and I must say it's been handling the interactive analytics demands exceptionally well. But I would like to improve the storage/querying efficiency, by segmenting using secondary partitioning on our tenant ID/account_number column.
We have data flowing in via a Kinesis Data Stream, and I remember in older versions of Druid (0.16), the approach would be to run an index_parallel task regularly with secondary partitioning. With Druid 34.0.0 however, I believe this can be done using auto-compaction? I tried setting up hashed partitioning on the account_number column, however it seems to be skipping every segment for some reason
Just for debugging I set the skipOffsetFromLatest to 10M, and even with new segments being written out every 1000 rows, it still seems to be skipping them. The logs don't seem to indicate why exactly the segments aren't compactible:
./coordinator-overlord.log
65272025-09-30T13
0114,507 WARN [Coordinator-Exec-IndexingServiceDuties-0] org.apache.druid.server.compaction.DataSourceCompactibleSegmentIterator - Skipping compaction for datasource[r3-event-stream] as it has no compactible segments.
curl -s
http://localhost:8081/druid/coordinator/v1/compaction/status?dataSource=r3-event-stream | jq .
{
"latestStatus": [
{
"dataSource": "r3-event-stream",
"scheduleStatus": "RUNNING",
"message": null,
"bytesAwaitingCompaction": 0,
"bytesCompacted": 0,
"bytesSkipped": 5587645,
"segmentCountAwaitingCompaction": 0,
"segmentCountCompacted": 0,
"segmentCountSkipped": 46,
"intervalCountAwaitingCompaction": 0,
"intervalCountCompacted": 0,
"intervalCountSkipped": 1
}
]
}
Hoping it's something simple I'm missing, thanks!