Class CompactSegments
java.lang.Object
org.apache.druid.server.coordinator.duty.CompactSegments
- All Implemented Interfaces:
CoordinatorCustomDuty,CoordinatorDuty
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompactSegments(CompactionStatusTracker statusTracker, OverlordClient overlordClient) -
Method Summary
Modifier and TypeMethodDescriptionstatic intfindMaxNumTaskSlotsUsedByOneNativeCompactionTask(ClientCompactionTaskQueryTuningConfig tuningConfig) Returns the maximum number of task slots used by one native compaction task at any time when the task is issued with the given tuningConfig.getAutoCompactionSnapshot(String dataSource) voidrun(DruidCompactionConfig dynamicConfig, DataSourcesSnapshot dataSources, CompactionEngine defaultEngine, CoordinatorRunStats stats) run(DruidCoordinatorRuntimeParams params) Implementations of this method run various activities performed by the coordinator.
-
Field Details
-
COMPACTION_TASK_TYPE
Must be the same as org.apache.druid.indexing.common.task.CompactionTask.TYPE.- See Also:
-
STORE_COMPACTION_STATE_KEY
Must be the same as org.apache.druid.indexing.common.task.Tasks.STORE_COMPACTION_STATE_KEY- See Also:
-
-
Constructor Details
-
CompactSegments
-
-
Method Details
-
getOverlordClient
-
run
Description copied from interface:CoordinatorDutyImplementations of this method run various activities performed by the coordinator. Input params can be used and modified. The returned DruidCoordinatorRuntimeParams is passed to the next duty.- Specified by:
runin interfaceCoordinatorDuty- Returns:
- same as input or a modified value to be used by next duty. Null return
values will prevent subsequent CoordinatorDuty objects (see the order in the lists passed into the constructor of
DruidCoordinator.DutiesRunnable) from running until the next cycle.
-
run
public void run(DruidCompactionConfig dynamicConfig, DataSourcesSnapshot dataSources, CompactionEngine defaultEngine, CoordinatorRunStats stats) -
findMaxNumTaskSlotsUsedByOneNativeCompactionTask
public static int findMaxNumTaskSlotsUsedByOneNativeCompactionTask(@Nullable ClientCompactionTaskQueryTuningConfig tuningConfig) Returns the maximum number of task slots used by one native compaction task at any time when the task is issued with the given tuningConfig. -
getAutoCompactionSnapshot
-
getAutoCompactionSnapshot
-