File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -2818,17 +2818,6 @@ func (a *Allocator) CountBasedRebalancingDisabled() bool {
2818
2818
return kvserverbase .LoadBasedRebalancingMode .Get (& a .st .SV ) == kvserverbase .LBRebalancingMultiMetricOnly
2819
2819
}
2820
2820
2821
- // CountBasedRebalancingOnlyEnabledByMMA returns true if count-based rebalancing
2822
- // should be enabled only when mma (multi-metric store rebalancer) allows the
2823
- // change. This is used to prevent thrashing when both multi-metric and
2824
- // count-based rebalancing are enabled and have conflicting goals.
2825
- // TODO(wenyihu6): since we sometimes see even worse thrashing behaviour with
2826
- // this change, should we introduce two modes
2827
- // (mma-count with+without thrashing prevention)?
2828
- func (a * Allocator ) CountBasedRebalancingOnlyEnabledByMMA () bool {
2829
- return kvserverbase .LoadBasedRebalancingMode .Get (& a .st .SV ) == kvserverbase .LBRebalancingMultiMetricAndCount
2830
- }
2831
-
2832
2821
// ShouldTransferLease returns true if the specified store is overfull in terms
2833
2822
// of leases with respect to the other stores matching the specified
2834
2823
// attributes.
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ import (
87
87
// passed to IsInConflictWithMMA to determine if a candidate conflicts with
88
88
// MMA's goals.
89
89
//
90
- // If MMA is disabled, a no-op advisor is returned, which always returns false
91
- // for IsInConflictWithMMA. If MMA is enabled, the advisor is created by
90
+ // If mma-count is disabled, a no-op advisor is returned, which always returns
91
+ // false for IsInConflictWithMMA. If MMA is enabled, the advisor is created by
92
92
// computing the load summary for the provided existing store and candidate set.
93
93
//
94
94
// Note that MMARebalanceAdvisor should always use the means summary constructed
You can’t perform that action at this time.
0 commit comments