Slackbot
02/14/2024, 8:04 PMJohn Kowtko
02/14/2024, 9:13 PMdruid.coordinator.period.indexingPeriod=PT300S
druid.coordinator.kill.on=true
druid.coordinator.kill.period=PT30M
druid.coordinator.kill.durationToRetain=P60D
druid.coordinator.kill.maxSegments=1000JRob
02/14/2024, 9:38 PMJRob
02/14/2024, 10:23 PMJohn Kowtko
02/14/2024, 10:42 PMJRob
02/14/2024, 10:46 PMJohn Kowtko
02/14/2024, 10:46 PMJRob
02/14/2024, 10:48 PMdruid.coordinator.kill.period can now be as low as druid.coordinator.period.indexingPeriod. It was earlier required to be strictly greater than the indexingPeriod.
⢠The leader Coordinator now keeps track of the last submitted kill task for a given datasource to avoid submitting duplicate kill tasks.John Kowtko
02/14/2024, 10:49 PMJRob
02/14/2024, 10:50 PMdruid.coordinator.kill.period = druid.coordinator.period.indexingPeriod = PT30M in order to trigger it hourly now? šJohn Kowtko
02/14/2024, 10:50 PMJRob
02/14/2024, 10:52 PMdruid.coordinator.kill.period + druid.coordinator.period.indexingPeriod šJohn Kowtko
02/14/2024, 10:54 PMJRob
02/14/2024, 10:55 PMdruid.coordinator.kill.period > druid.coordinator.period.indexingPeriod
But now it is: druid.coordinator.kill.period >= druid.coordinator.period.indexingPeriodJRob
02/14/2024, 10:55 PMJRob
02/14/2024, 11:15 PMdruid.coordinator.kill.periodAbhishek Balaji Radhakrishnan
02/15/2024, 4:55 AMdruid.coordinator.kill.period suggests a weak lower bound on how often the coordinator will execute kill tasks, which depends on the last kill time kill was spawned. Maybe there is scope to improve the docs for this configuration? Feel free to raise a PR if you agree: https://druid.apache.org/docs/28.0.1/configuration/#:~:text=druid.-,coordinator,-.kill.periodJRob
02/15/2024, 2:09 PMdruid.coordinator.period.indexingPeriod greater than druid.coordinator.kill.period so, for example, to achieve an hourly kill cycle with the default indexing period of PT30M, one could set druid.coordinator.kill.period to a value between PT31M and PT59M, but this will vary depending on how long indexing tasks take on your Druid cluster."
I do think that the new "auto cleaner" feature added in 28.0 is a nice addition and likely what I will be using now, especially since it's the new default setting.John Kowtko
02/15/2024, 7:17 PMAbhishek Balaji Radhakrishnan
02/17/2024, 4:29 AMdruid.coordinator.kill.period exists. That config predates some of the guard rails that were added more recently, so it must have been for a conservative measure. But now, I think we could just piggy back on druid.coordinator.period.indexingPeriod. Fwiw, you could set druid.coordinator.kill.period and druid.coordinator.period.indexingPeriod to the same values and things will be slightly more predictable.
I will see if we can deprecate druid.coordinator.kill.period to make things more simple here.JRob
02/20/2024, 2:19 PM