diff --git a/pkg/schedule/schedulers/utils.go b/pkg/schedule/schedulers/utils.go index 9a6a6bd96fa..88c45ddf433 100644 --- a/pkg/schedule/schedulers/utils.go +++ b/pkg/schedule/schedulers/utils.go @@ -177,6 +177,10 @@ func (p *solver) getTolerantResource() int64 { p.tolerantSource = int64(p.tolerantSizeRatio) } else { regionSize := p.GetAverageRegionSize() + minRegionSize := int64(p.GetSchedulerConfig().GetScheduleConfig().MaxMergeRegionSize) + if regionSize < minRegionSize { + regionSize = minRegionSize + } p.tolerantSource = int64(float64(regionSize) * p.tolerantSizeRatio) } return p.tolerantSource