Package org.apache.druid.server.coordinator.duty
package org.apache.druid.server.coordinator.duty
-
ClassDescriptionCoordinator Duty to balance segments across Historicals.Handles cloning of historicals.This
ExtensionPointallows for coordinator duty to be pluggable so that users can register their own duties without modifying Core Druid classes.A group ofCoordinatorDuty.utilty methods that are useful for coordinator dutiesCoordinatorDuty for automatic deletion of compaction configurations from the config table in metadata storage.CoordinatorDuty for automatic deletion of datasource metadata from the datasource table in metadata storage.Duty to kill stale pending segments which are not needed anymore.Cleans up terminated supervisors from the supervisors table in metadata storage.ExampleCoordinatorCustomDutyfor automatic deletion of terminated supervisors from the metadata storage.Coordinator duty to clean up segment schema which are not referenced by any used segment.Completely removes information about unused segments who have an interval end that comes before now -KillUnusedSegments.durationToRetainfrom the metadata store.Mark eternity tombstones not overshadowed by currently served segments as unused.Marks a segment as unused if it is overshadowed by: a segment served by a historical or broker a segment that has zero required replicas and thus will never be loaded on a serverContains functional interfaces that are used by aCoordinatorDutyto perform a single read or write operation on the metadata store.Performs cleanup of stale metadata entries created before a configured retain duration.This duty does the following: Creates an immutableDruidClusterconsisting ofServerHolders which represent the current state of the servers in the cluster. Starts and stops load peons for new and disappeared servers respectively. Cancels in-progress loads on all decommissioning servers.Duty to run retention rules for all used non-overshadowed segments.Unloads segments that are no longer marked as used from servers.