Class 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
    • 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
      • getValidatedDebugDimensions

        public Map<Dimension,​String> getValidatedDebugDimensions()
      • getPauseCoordination

        public boolean getPauseCoordination()
      • getReplicateAfterLoadTimeout

        public boolean getReplicateAfterLoadTimeout()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDefaultBalancerComputeThreads

        public static int getDefaultBalancerComputeThreads()
        Returns a value of (num processors / 2) to ensure that balancing computations do not hog all Coordinator resources.