Youngsol Koh
09/30/2024, 3:29 AMAmatya Avadhanula
09/30/2024, 8:10 AMYoungsol Koh
09/30/2024, 8:10 AMJohn Kowtko
09/30/2024, 1:37 PMdruid.coordinator.kill.bufferPeriod to a smaller value, or to zero, to eliminate the grace period allowed after the segment is marked as unused.JRob
09/30/2024, 3:03 PMJRob
09/30/2024, 3:06 PM# Enable auto-delete from deep storage
druid.coordinator.kill.on=true
druid.coordinator.kill.period=PT10M
druid.coordinator.kill.durationToRetain=P1D
druid.coordinator.kill.bufferPeriod=PT6H
druid.coordinator.kill.maxSegments=10000
druid.coordinator.period.indexingPeriod=PT10MAmatya Avadhanula
09/30/2024, 3:07 PMJRob
09/30/2024, 3:08 PMdruid.coordinator.period.indexingPeriod to match the druid.coordinator.kill.periodJRob
09/30/2024, 7:13 PMJRob
09/30/2024, 7:24 PMdruid.coordinator.kill.bufferPeriod).
In order for a segment to be candidate for deletion it must be marked unused and not fall within the configured bufferPeriod & durationToRetain
1. Druid only kills segments that have been marked unused
2. Druid will not issue kill commands for segments created in the past 90 days (can be configured via druid.coordinator.kill.durationToRetain)
3. Druid will not issue kill commands for segments marked unused in the past 30 days (configured via druid.coordinator.kill.bufferPeriod)
4. If a segment is within the kill interval but was marked unused in the past 30 days (configured via druid.coordinator.kill.bufferPeriod), it will be skipped.
Effect of Retention Policy:
1. When a segment is dropped due to a drop rule; it is marked unused.
2. The effective retention period for segments in deep storage is extended by 30 days (configured via druid.coordinator.kill.bufferPeriod).
Effect of Compaction:
1. Compaction tasks create new versions of segments. The old versions of segments are marked unused.
2. The old versions of segments marked unused by compaction will be retained for at least 30 days after compaction (configured via druid.coordinator.kill.bufferPeriod).
3. The old versions of segments could be retained even longer if they were originally created within 90 days (configured via druid.coordinator.kill.durationToRetain).Youngsol Koh
10/02/2024, 2:17 AMforceTimeChunkLock is true but can I set it false? since it is unused segment,JRob
10/02/2024, 2:33 AMYoungsol Koh
10/02/2024, 2:42 AMYoungsol Koh
10/02/2024, 6:10 AMYoungsol Koh
10/02/2024, 6:59 AMAmatya Avadhanula
10/02/2024, 7:01 AMYoungsol Koh
10/02/2024, 7:02 AMYoungsol Koh
10/02/2024, 7:03 AMAmatya Avadhanula
10/02/2024, 7:04 AMYoungsol Koh
10/02/2024, 7:05 AMAmatya Avadhanula
10/02/2024, 7:07 AMYoungsol Koh
10/02/2024, 7:07 AMYoungsol Koh
10/02/2024, 7:08 AMAmatya Avadhanula
10/02/2024, 7:09 AMYoungsol Koh
10/02/2024, 7:10 AMAmatya Avadhanula
10/02/2024, 7:11 AMAmatya Avadhanula
10/02/2024, 7:12 AMYoungsol Koh
10/02/2024, 7:12 AMAmatya Avadhanula
10/02/2024, 7:13 AMYoungsol Koh
10/02/2024, 7:13 AMAmatya Avadhanula
10/02/2024, 7:14 AMYoungsol Koh
10/02/2024, 7:32 AMselect used,
count(*)
from druid_segments where dataSource = dataSourceName
group by 1;
+------+------------+
| used | dataSource |
+------+------------+
| 0 | 410 |
| 1 | 7954 |
+------+------------+
Count on s3 object, 16000+
checked log nothing special..Youngsol Koh
10/02/2024, 7:36 AMdescriptor.json file as well.John Kowtko
10/02/2024, 12:45 PMJRob
10/02/2024, 2:28 PM