Changed variance based balancing to 3
This commit is contained in:
parent
cc0bf011a0
commit
90b1282d16
2 changed files with 3 additions and 3 deletions
|
|
@ -249,7 +249,7 @@ public class PropertiesMappingE2ETest {
|
||||||
.workerUtilizationAwareAssignmentConfig()
|
.workerUtilizationAwareAssignmentConfig()
|
||||||
.staleWorkerMetricsEntryCleanupDuration());
|
.staleWorkerMetricsEntryCleanupDuration());
|
||||||
assertEquals(
|
assertEquals(
|
||||||
12,
|
3,
|
||||||
kclV3Config
|
kclV3Config
|
||||||
.leaseManagementConfig
|
.leaseManagementConfig
|
||||||
.workerUtilizationAwareAssignmentConfig()
|
.workerUtilizationAwareAssignmentConfig()
|
||||||
|
|
|
||||||
|
|
@ -580,12 +580,12 @@ public class LeaseManagementConfig {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Frequency to perform worker variance balancing. This value is used with respect to the LAM frequency,
|
* Frequency to perform worker variance balancing. This value is used with respect to the LAM frequency,
|
||||||
* that is every twelfth (as default) iteration of LAM the worker variance balancing will be performed.
|
* that is every third (as default) iteration of LAM the worker variance balancing will be performed.
|
||||||
* Setting it to 1 will make varianceBalancing run on every iteration of LAM and 2 on every 2nd iteration
|
* Setting it to 1 will make varianceBalancing run on every iteration of LAM and 2 on every 2nd iteration
|
||||||
* and so on.
|
* and so on.
|
||||||
* NOTE: LAM frequency = failoverTimeMillis
|
* NOTE: LAM frequency = failoverTimeMillis
|
||||||
*/
|
*/
|
||||||
private int varianceBalancingFrequency = 12;
|
private int varianceBalancingFrequency = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alpha value used for calculating exponential moving average of worker's metricStats. Selecting
|
* Alpha value used for calculating exponential moving average of worker's metricStats. Selecting
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue