From 95ac76152f723dc55690c44cb79aa4974b68dfdd Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Fri, 8 Jul 2022 02:27:56 +0800 Subject: [PATCH 1/3] scheduler: update hot region scheduler default config Signed-off-by: lhy1024 --- server/schedulers/hot_region_config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/schedulers/hot_region_config.go b/server/schedulers/hot_region_config.go index df5a7cb7d46..2925defa41a 100644 --- a/server/schedulers/hot_region_config.go +++ b/server/schedulers/hot_region_config.go @@ -51,7 +51,7 @@ const ( var defaultConfig = prioritiesConfig{ read: []string{QueryPriority, BytePriority}, - writeLeader: []string{KeyPriority, BytePriority}, + writeLeader: []string{QueryPriority, BytePriority}, writePeer: []string{BytePriority, KeyPriority}, } @@ -65,9 +65,9 @@ var compatibleConfig = prioritiesConfig{ // params about hot region. func initHotRegionScheduleConfig() *hotRegionSchedulerConfig { cfg := &hotRegionSchedulerConfig{ - MinHotByteRate: 100, - MinHotKeyRate: 10, - MinHotQueryRate: 10, + MinHotByteRate: 65536, + MinHotKeyRate: 1024, + MinHotQueryRate: 32, MaxZombieRounds: 3, MaxPeerNum: 1000, ByteRateRankStepRatio: 0.05, @@ -78,7 +78,7 @@ func initHotRegionScheduleConfig() *hotRegionSchedulerConfig { MinorDecRatio: 0.99, SrcToleranceRatio: 1.05, // Tolerate 5% difference DstToleranceRatio: 1.05, // Tolerate 5% difference - StrictPickingStore: true, + StrictPickingStore: false, EnableForTiFlash: true, ForbidRWType: "none", } From 0c30b9a2a914599b77b43e943a92d9783bce39c1 Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Tue, 13 Sep 2022 20:12:12 +0800 Subject: [PATCH 2/3] update Signed-off-by: lhy1024 --- server/schedulers/hot_region_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/schedulers/hot_region_config.go b/server/schedulers/hot_region_config.go index 2925defa41a..db6768ec8f3 100644 --- a/server/schedulers/hot_region_config.go +++ b/server/schedulers/hot_region_config.go @@ -65,10 +65,10 @@ var compatibleConfig = prioritiesConfig{ // params about hot region. func initHotRegionScheduleConfig() *hotRegionSchedulerConfig { cfg := &hotRegionSchedulerConfig{ - MinHotByteRate: 65536, + MinHotByteRate: 8192, MinHotKeyRate: 1024, MinHotQueryRate: 32, - MaxZombieRounds: 3, + MaxZombieRounds: 6, MaxPeerNum: 1000, ByteRateRankStepRatio: 0.05, KeyRateRankStepRatio: 0.05, From 623d0af323dcee479f18934821c1bba8ed08157d Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Wed, 14 Sep 2022 14:10:57 +0800 Subject: [PATCH 3/3] revert MaxZombieRounds Signed-off-by: lhy1024 --- server/schedulers/hot_region_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/schedulers/hot_region_config.go b/server/schedulers/hot_region_config.go index 8b7b12e84ef..2ac06b636df 100644 --- a/server/schedulers/hot_region_config.go +++ b/server/schedulers/hot_region_config.go @@ -68,7 +68,7 @@ func initHotRegionScheduleConfig() *hotRegionSchedulerConfig { MinHotByteRate: 8192, MinHotKeyRate: 1024, MinHotQueryRate: 32, - MaxZombieRounds: 6, + MaxZombieRounds: 3, MaxPeerNum: 1000, ByteRateRankStepRatio: 0.05, KeyRateRankStepRatio: 0.05,