public class CoordinatorDynamicConfig extends Object
JacksonConfigManager,
ConfigManager| Modifier and Type | Class and Description |
|---|---|
static class |
CoordinatorDynamicConfig.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KEY |
| Constructor and Description |
|---|
CoordinatorDynamicConfig(long markSegmentAsUnusedDelayMillis,
long mergeBytesLimit,
int mergeSegmentsLimit,
int maxSegmentsToMove,
int replicantLifetime,
int replicationThrottleLimit,
int balancerComputeThreads,
Object specificDataSourcesToKillUnusedSegmentsIn,
Object dataSourcesToNotKillStalePendingSegmentsIn,
Integer maxSegmentsInNodeLoadingQueue,
Object decommissioningNodes,
int decommissioningMaxPercentOfMaxSegmentsToMove,
boolean pauseCoordination,
boolean replicateAfterLoadTimeout,
Integer maxNonPrimaryReplicantsToLoad,
Boolean useRoundRobinSegmentAssignment,
Boolean smartSegmentLoading,
Map<String,String> debugDimensions) |
public static final String CONFIG_KEY
public CoordinatorDynamicConfig(long markSegmentAsUnusedDelayMillis,
long mergeBytesLimit,
int mergeSegmentsLimit,
int maxSegmentsToMove,
int replicantLifetime,
int replicationThrottleLimit,
int balancerComputeThreads,
Object specificDataSourcesToKillUnusedSegmentsIn,
Object dataSourcesToNotKillStalePendingSegmentsIn,
@Nullable
Integer maxSegmentsInNodeLoadingQueue,
Object decommissioningNodes,
int decommissioningMaxPercentOfMaxSegmentsToMove,
boolean pauseCoordination,
boolean replicateAfterLoadTimeout,
@Nullable
Integer maxNonPrimaryReplicantsToLoad,
@Nullable
Boolean useRoundRobinSegmentAssignment,
@Nullable
Boolean smartSegmentLoading,
@Nullable
Map<String,String> debugDimensions)
public static AtomicReference<CoordinatorDynamicConfig> watch(JacksonConfigManager configManager)
@Nonnull public static CoordinatorDynamicConfig current(JacksonConfigManager configManager)
public long getMarkSegmentAsUnusedDelayMillis()
public long getMergeBytesLimit()
public int getMergeSegmentsLimit()
public int getMaxSegmentsToMove()
public int getReplicantLifetime()
public int getReplicationThrottleLimit()
public int getBalancerComputeThreads()
public Set<String> getSpecificDataSourcesToKillUnusedSegmentsIn()
public boolean isKillUnusedSegmentsInAllDataSources()
public Set<String> getDataSourcesToNotKillStalePendingSegmentsIn()
public int getMaxSegmentsInNodeLoadingQueue()
public boolean isUseRoundRobinSegmentAssignment()
public boolean isSmartSegmentLoading()
public Set<String> getDecommissioningNodes()
getDecommissioningMaxPercentOfMaxSegmentsToMove().@Min(value=0L) @Max(value=100L) @Deprecated public int getDecommissioningMaxPercentOfMaxSegmentsToMove()
getMaxSegmentsToMove() that determines the maximum number of
segments that may be moved away from 'decommissioning' servers (specified by
getDecommissioningNodes()) to non-decommissioning servers during one Coordinator
balancer run. If this value is 0, segments will neither be moved from or to 'decommissioning' servers, effectively
putting them in a sort of "maintenance" mode that will not participate in balancing or assignment by load rules.
Decommissioning can also become stalled if there are no available active servers to place the segments. By
adjusting this value, an operator can prevent active servers from overload by prioritizing balancing, or
decrease decommissioning time instead.public boolean getPauseCoordination()
public boolean getReplicateAfterLoadTimeout()
@Min(value=0L) @Deprecated public int getMaxNonPrimaryReplicantsToLoad()
public static CoordinatorDynamicConfig.Builder builder()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.