Class CoordinatorDynamicConfig
java.lang.Object
org.apache.druid.server.coordinator.CoordinatorDynamicConfig
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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorDynamicConfig(long markSegmentAsUnusedDelayMillis, 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, Set<String> turboLoadingNodes, Map<String, String> cloneServers) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanintMap from target Historical server to source Historical server which should be cloned by the target.List of historical servers to 'decommission'.static intReturns a value of(num processors / 2)to ensure that balancing computations do not hog all Coordinator resources.doublegetLoadingModeForServer(String serverName) longintintintbooleanintbooleanintList of servers to put in turbo-loading mode.inthashCode()booleanbooleantoString()
-
Field Details
-
CONFIG_KEY
- See Also:
-
-
Constructor Details
-
CoordinatorDynamicConfig
public CoordinatorDynamicConfig(long markSegmentAsUnusedDelayMillis, 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, @Nullable Set<String> turboLoadingNodes, @Nullable Map<String, String> cloneServers)
-
-
Method Details
-
getLoadingModeForServer
-
getMarkSegmentAsUnusedDelayMillis
public long getMarkSegmentAsUnusedDelayMillis() -
getMaxSegmentsToMove
public int getMaxSegmentsToMove() -
getReplicantLifetime
public int getReplicantLifetime() -
getReplicationThrottleLimit
public int getReplicationThrottleLimit() -
getBalancerComputeThreads
public int getBalancerComputeThreads() -
getSpecificDataSourcesToKillUnusedSegmentsIn
-
getKillTaskSlotRatio
public double getKillTaskSlotRatio() -
getMaxKillTaskSlots
public int getMaxKillTaskSlots() -
getDataSourcesToNotKillStalePendingSegmentsIn
-
getMaxSegmentsInNodeLoadingQueue
public int getMaxSegmentsInNodeLoadingQueue() -
isUseRoundRobinSegmentAssignment
public boolean isUseRoundRobinSegmentAssignment() -
isSmartSegmentLoading
public boolean isSmartSegmentLoading() -
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:
- Set of host:port entries
-
getDebugDimensions
-
getValidatedDebugDimensions
-
getPauseCoordination
public boolean getPauseCoordination() -
getReplicateAfterLoadTimeout
public boolean getReplicateAfterLoadTimeout() -
getCloneServers
Map from target Historical server to source Historical server which should be cloned by the target. The target Historical does not participate in regular segment assignment or balancing. Instead, the Coordinator mirrors any segment assignment made to the source Historical onto the target Historical, so that the target becomes an exact copy of the source. Segments on the target Historical do not count towards replica counts either. If the source disappears, the target remains in the last known state of the source server until removed from the cloneServers. -
getTurboLoadingNodes
List of servers to put in turbo-loading mode. These servers will use a larger thread pool to load segments. This causes decreases the average time taken to load segments. However, this also means less resources available to query threads which may cause a drop in query performance.- Returns:
- Set of host:port entries
-
toString
-
equals
-
hashCode
public int hashCode() -
builder
-
getDefaultBalancerComputeThreads
public static int getDefaultBalancerComputeThreads()Returns a value of(num processors / 2)to ensure that balancing computations do not hog all Coordinator resources.
-