Class CoordinatorDynamicConfig
- java.lang.Object
-
- org.apache.druid.server.coordinator.CoordinatorDynamicConfig
-
public class CoordinatorDynamicConfig extends Object
This class is for users to change their configurations while their Druid cluster is running. These configurations are designed to allow only simple values rather than complicated JSON objects.- See Also:
JacksonConfigManager,ConfigManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoordinatorDynamicConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_KEY
-
Constructor Summary
Constructors Constructor Description CoordinatorDynamicConfig(long markSegmentAsUnusedDelayMillis, long mergeBytesLimit, int mergeSegmentsLimit, int maxSegmentsToMove, int replicantLifetime, int replicationThrottleLimit, int 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)
-
Method Summary
-
-
-
Field Detail
-
CONFIG_KEY
public static final String CONFIG_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoordinatorDynamicConfig
public CoordinatorDynamicConfig(long markSegmentAsUnusedDelayMillis, long mergeBytesLimit, int mergeSegmentsLimit, int maxSegmentsToMove, int replicantLifetime, int replicationThrottleLimit, int balancerComputeThreads, Object specificDataSourcesToKillUnusedSegmentsIn, @Nullable Double killTaskSlotRatio, @Nullable Integer maxKillTaskSlots, Object dataSourcesToNotKillStalePendingSegmentsIn, @Nullable Integer maxSegmentsInNodeLoadingQueue, Object decommissioningNodes, boolean pauseCoordination, boolean replicateAfterLoadTimeout, @Nullable Boolean useRoundRobinSegmentAssignment, @Nullable Boolean smartSegmentLoading, @Nullable Map<String,String> debugDimensions)
-
-
Method Detail
-
getMarkSegmentAsUnusedDelayMillis
public long getMarkSegmentAsUnusedDelayMillis()
-
getMergeBytesLimit
public long getMergeBytesLimit()
-
getMergeSegmentsLimit
public int getMergeSegmentsLimit()
-
getMaxSegmentsToMove
public int getMaxSegmentsToMove()
-
getReplicantLifetime
public int getReplicantLifetime()
-
getReplicationThrottleLimit
public int getReplicationThrottleLimit()
-
getBalancerComputeThreads
public int getBalancerComputeThreads()
-
getSpecificDataSourcesToKillUnusedSegmentsIn
public Set<String> getSpecificDataSourcesToKillUnusedSegmentsIn()
-
getKillTaskSlotRatio
public double getKillTaskSlotRatio()
-
getMaxKillTaskSlots
public int getMaxKillTaskSlots()
-
isKillUnusedSegmentsInAllDataSources
public boolean isKillUnusedSegmentsInAllDataSources()
-
getDataSourcesToNotKillStalePendingSegmentsIn
public Set<String> getDataSourcesToNotKillStalePendingSegmentsIn()
-
getMaxSegmentsInNodeLoadingQueue
public int getMaxSegmentsInNodeLoadingQueue()
-
isUseRoundRobinSegmentAssignment
public boolean isUseRoundRobinSegmentAssignment()
-
isSmartSegmentLoading
public boolean isSmartSegmentLoading()
-
getDecommissioningNodes
public Set<String> getDecommissioningNodes()
List of historical servers to 'decommission'. Coordinator will not assign new segments to 'decommissioning' servers, and segments will be moved away from them to be placed on non-decommissioning servers.- Returns:
- list of host:port entries
-
getPauseCoordination
public boolean getPauseCoordination()
-
getReplicateAfterLoadTimeout
public boolean getReplicateAfterLoadTimeout()
-
builder
public static CoordinatorDynamicConfig.Builder builder()
-
getDefaultBalancerComputeThreads
public static int getDefaultBalancerComputeThreads()
Returns a value of(num processors / 2)to ensure that balancing computations do not hog all Coordinator resources.
-
-