From 892f9a3d91778ac489ad6360236e4938ff5d7aaa Mon Sep 17 00:00:00 2001 From: Gaius Date: Mon, 28 Feb 2022 18:04:58 +0800 Subject: [PATCH] feat: change client default load limit (#1104) Signed-off-by: Gaius --- manager/database/mysql.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manager/database/mysql.go b/manager/database/mysql.go index 8fb770e69a9..b849e77f091 100644 --- a/manager/database/mysql.go +++ b/manager/database/mysql.go @@ -32,8 +32,11 @@ import ( ) const ( - defaultCDNLoadLimit = 300 - defaultClientLoadLimit = 100 + // Default number of cdn load limit + defaultCDNLoadLimit = 300 + + // Default number of client load limit + defaultClientLoadLimit = 50 ) func newMyqsl(cfg *config.MysqlConfig) (*gorm.DB, error) {