Class CoordinatorDynamicConfig.Builder
java.lang.Object
org.apache.druid.server.coordinator.CoordinatorDynamicConfig.Builder
- Enclosing class:
- CoordinatorDynamicConfig
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(Long markSegmentAsUnusedDelayMillis, Integer maxSegmentsToMove, Integer replicantLifetime, Integer replicationThrottleLimit, Integer balancerComputeThreads, Object specificDataSourcesToKillUnusedSegmentsIn, Double killTaskSlotRatio, Integer maxKillTaskSlots, Object dataSourcesToNotKillStalePendingSegmentsIn, Integer maxSegmentsInNodeLoadingQueue, Object decommissioningNodes, Boolean pauseCoordination, Boolean replicateAfterLoadTimeout, Boolean useRoundRobinSegmentAssignment, Boolean smartSegmentLoading, Map<String, String> debugDimensions, Set<String> turboLoadingNodes, Map<String, String> cloneServers) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a CoordinatoryDynamicConfig using either the configured values, or the default value if not configured.build(CoordinatorDynamicConfig defaults) withCloneServers(Map<String, String> cloneServers) withDatasourcesToNotKillPendingSegmentsIn(Set<String> datasources) withDecommissioningNodes(Set<String> decommissioning) withKillTaskSlotRatio(Double killTaskSlotRatio) withMarkSegmentAsUnusedDelayMillis(long leadingTimeMillis) withMaxKillTaskSlots(Integer maxKillTaskSlots) withMaxSegmentsInNodeLoadingQueue(int maxSegmentsInNodeLoadingQueue) withMaxSegmentsToMove(int maxSegmentsToMove) withPauseCoordination(boolean pauseCoordination) withReplicantLifetime(int replicantLifetime) withReplicateAfterLoadTimeout(boolean replicateAfterLoadTimeout) withReplicationThrottleLimit(int replicationThrottleLimit) withSmartSegmentLoading(boolean smartSegmentLoading) withSpecificDataSourcesToKillUnusedSegmentsIn(Set<String> dataSources) withTurboLoadingNodes(Set<String> turboLoadingNodes) withUseRoundRobinSegmentAssignment(boolean useRoundRobinSegmentAssignment)
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(@Nullable Long markSegmentAsUnusedDelayMillis, @Nullable Integer maxSegmentsToMove, @Nullable Integer replicantLifetime, @Nullable Integer replicationThrottleLimit, @Nullable Integer balancerComputeThreads, @Nullable Object specificDataSourcesToKillUnusedSegmentsIn, @Nullable Double killTaskSlotRatio, @Nullable Integer maxKillTaskSlots, @Nullable Object dataSourcesToNotKillStalePendingSegmentsIn, @Nullable Integer maxSegmentsInNodeLoadingQueue, @Nullable Object decommissioningNodes, @Nullable Boolean pauseCoordination, @Nullable Boolean replicateAfterLoadTimeout, @Nullable Boolean useRoundRobinSegmentAssignment, @Nullable Boolean smartSegmentLoading, @Nullable Map<String, String> debugDimensions, @Nullable Set<String> turboLoadingNodes, @Nullable Map<String, String> cloneServers)
-
-
Method Details
-
withMarkSegmentAsUnusedDelayMillis
-
withMaxSegmentsToMove
-
withSmartSegmentLoading
-
withTurboLoadingNodes
-
withReplicantLifetime
-
withReplicationThrottleLimit
-
withSpecificDataSourcesToKillUnusedSegmentsIn
public CoordinatorDynamicConfig.Builder withSpecificDataSourcesToKillUnusedSegmentsIn(Set<String> dataSources) -
withDatasourcesToNotKillPendingSegmentsIn
public CoordinatorDynamicConfig.Builder withDatasourcesToNotKillPendingSegmentsIn(Set<String> datasources) -
withKillTaskSlotRatio
-
withMaxKillTaskSlots
-
withMaxSegmentsInNodeLoadingQueue
public CoordinatorDynamicConfig.Builder withMaxSegmentsInNodeLoadingQueue(int maxSegmentsInNodeLoadingQueue) -
withDecommissioningNodes
-
withPauseCoordination
-
withReplicateAfterLoadTimeout
public CoordinatorDynamicConfig.Builder withReplicateAfterLoadTimeout(boolean replicateAfterLoadTimeout) -
withUseRoundRobinSegmentAssignment
public CoordinatorDynamicConfig.Builder withUseRoundRobinSegmentAssignment(boolean useRoundRobinSegmentAssignment) -
withCloneServers
-
build
Builds a CoordinatoryDynamicConfig using either the configured values, or the default value if not configured. -
build
-