public class SegmentLoadingConfig extends Object
CoordinatorDynamicConfig based on
whether CoordinatorDynamicConfig.isSmartSegmentLoading() is enabled or not.| Modifier and Type | Method and Description |
|---|---|
static SegmentLoadingConfig |
create(CoordinatorDynamicConfig dynamicConfig,
int numUsedSegments)
Creates a new SegmentLoadingConfig with recomputed coordinator config values from
based on whether
CoordinatorDynamicConfig.isSmartSegmentLoading()
is enabled or not. |
int |
getMaxLifetimeInLoadQueue() |
int |
getMaxReplicaAssignmentsInRun() |
int |
getMaxSegmentsInLoadQueue() |
int |
getMaxSegmentsToMove() |
int |
getPercentDecommSegmentsToMove() |
int |
getReplicationThrottleLimit() |
boolean |
isUseRoundRobinSegmentAssignment() |
public static SegmentLoadingConfig create(CoordinatorDynamicConfig dynamicConfig, int numUsedSegments)
CoordinatorDynamicConfig.isSmartSegmentLoading()
is enabled or not.public int getMaxSegmentsInLoadQueue()
public int getMaxSegmentsToMove()
public int getReplicationThrottleLimit()
public boolean isUseRoundRobinSegmentAssignment()
public int getMaxLifetimeInLoadQueue()
public int getMaxReplicaAssignmentsInRun()
public int getPercentDecommSegmentsToMove()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.