From 222a7879db0e4a390cd511d52ea885ba581e8575 Mon Sep 17 00:00:00 2001 From: Gaius Date: Thu, 13 Jun 2024 21:17:49 +0800 Subject: [PATCH] feat: change loadLimit validation to 50000 (#3322) Signed-off-by: Gaius --- manager/types/seed_peer_cluster.go | 2 +- scheduler/config/constants.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/types/seed_peer_cluster.go b/manager/types/seed_peer_cluster.go index 8d59800ce..c8f0b8f3d 100644 --- a/manager/types/seed_peer_cluster.go +++ b/manager/types/seed_peer_cluster.go @@ -49,5 +49,5 @@ type GetSeedPeerClustersQuery struct { } type SeedPeerClusterConfig struct { - LoadLimit uint32 `yaml:"loadLimit" mapstructure:"loadLimit" json:"load_limit" binding:"omitempty,gte=1,lte=5000"` + LoadLimit uint32 `yaml:"loadLimit" mapstructure:"loadLimit" json:"load_limit" binding:"omitempty,gte=1,lte=50000"` } diff --git a/scheduler/config/constants.go b/scheduler/config/constants.go index d7a480ba4..373a45fb0 100644 --- a/scheduler/config/constants.go +++ b/scheduler/config/constants.go @@ -25,7 +25,7 @@ import ( const ( // DefaultSeedPeerConcurrentUploadLimit is default number for seed peer concurrent upload limit. - DefaultSeedPeerConcurrentUploadLimit = 800 + DefaultSeedPeerConcurrentUploadLimit = 2000 // DefaultPeerConcurrentUploadLimit is default number for peer concurrent upload limit. DefaultPeerConcurrentUploadLimit = 200