Class UnusedSegmentKillerConfig

java.lang.Object
org.apache.druid.metadata.UnusedSegmentKillerConfig

public class UnusedSegmentKillerConfig extends Object
Config for UnusedSegmentKiller. This is used only by the Overlord. Enabling this config on the Coordinator or other services has no effect.
  • Constructor Details

    • UnusedSegmentKillerConfig

      public UnusedSegmentKillerConfig(@Nullable Boolean enabled, @Nullable org.joda.time.Period bufferPeriod, @Nullable org.joda.time.Period dutyPeriod)
  • Method Details

    • getBufferPeriod

      public org.joda.time.Period getBufferPeriod()
      Period for which segments are retained even after being marked as unused.
    • getDutyPeriod

      public org.joda.time.Period getDutyPeriod()
      Period dictating the frequency at which the unused segment killer duty should be run. This config is for testing only and SHOULD NOT be used in production clusters.
    • isEnabled

      public boolean isEnabled()