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 leadingTimeMillisBeforeCanMarkAsUnusedOvershadowedSegments,
long mergeBytesLimit,
int mergeSegmentsLimit,
int maxSegmentsToMove,
Double percentOfSegmentsToConsiderPerMove,
boolean useBatchedSegmentSampler,
int replicantLifetime,
int replicationThrottleLimit,
int balancerComputeThreads,
boolean emitBalancingStats,
Object specificDataSourcesToKillUnusedSegmentsIn,
boolean killUnusedSegmentsInAllDataSources,
Object dataSourcesToNotKillStalePendingSegmentsIn,
Integer maxSegmentsInNodeLoadingQueue,
Object decommissioningNodes,
int decommissioningMaxPercentOfMaxSegmentsToMove,
boolean pauseCoordination,
boolean replicateAfterLoadTimeout,
Integer maxNonPrimaryReplicantsToLoad) |
public static final String CONFIG_KEY
public CoordinatorDynamicConfig(long leadingTimeMillisBeforeCanMarkAsUnusedOvershadowedSegments,
long mergeBytesLimit,
int mergeSegmentsLimit,
int maxSegmentsToMove,
@Nullable
Double percentOfSegmentsToConsiderPerMove,
boolean useBatchedSegmentSampler,
int replicantLifetime,
int replicationThrottleLimit,
int balancerComputeThreads,
boolean emitBalancingStats,
Object specificDataSourcesToKillUnusedSegmentsIn,
boolean killUnusedSegmentsInAllDataSources,
Object dataSourcesToNotKillStalePendingSegmentsIn,
@Nullable
Integer maxSegmentsInNodeLoadingQueue,
Object decommissioningNodes,
int decommissioningMaxPercentOfMaxSegmentsToMove,
boolean pauseCoordination,
boolean replicateAfterLoadTimeout,
@Nullable
Integer maxNonPrimaryReplicantsToLoad)
public static AtomicReference<CoordinatorDynamicConfig> watch(JacksonConfigManager configManager)
@Nonnull public static CoordinatorDynamicConfig current(JacksonConfigManager configManager)
public long getLeadingTimeMillisBeforeCanMarkAsUnusedOvershadowedSegments()
public long getMergeBytesLimit()
public boolean emitBalancingStats()
public int getMergeSegmentsLimit()
public int getMaxSegmentsToMove()
public double getPercentOfSegmentsToConsiderPerMove()
public boolean useBatchedSegmentSampler()
public int getReplicantLifetime()
public int getReplicationThrottleLimit()
public int getBalancerComputeThreads()
public Set<String> getSpecificDataSourcesToKillUnusedSegmentsIn()
public boolean isKillUnusedSegmentsInAllDataSources()
public Set<String> getDataSourcesToNotKillStalePendingSegmentsIn()
public int getMaxSegmentsInNodeLoadingQueue()
public Set<String> getDecommissioningNodes()
getDecommissioningMaxPercentOfMaxSegmentsToMove().@Min(value=0L) @Max(value=100L) 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) public int getMaxNonPrimaryReplicantsToLoad()
public static CoordinatorDynamicConfig.Builder builder()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.