Skip to content

Commit

Permalink
feat: 新增降低分区定时任务负载的功能 #4545
Browse files Browse the repository at this point in the history
  • Loading branch information
fanfanyangyang committed Jun 17, 2024
1 parent bdbd492 commit ea3ed0b
Show file tree
Hide file tree
Showing 62 changed files with 1,931 additions and 742 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ var (
DomainNotExists = Errno{Code: 52030, Message: "domain not exists", CNMessage: "域名不存在"}
NotSupportedPartitionType = Errno{Code: 52031, Message: "not supported partition type", CNMessage: "不支持的分区类型"}
WrongPartitionNameFormat = Errno{Code: 52032, Message: "wrong partition name format ", CNMessage: "分区名格式错误"}
DownloadDbactorFail = Errno{Code: 52030, Message: "download dbactor fail", CNMessage: "下载dbactor失败"}
DownloadDbactorFail = Errno{Code: 52033, Message: "download dbactor fail", CNMessage: "下载dbactor失败"}
DownloadFileFail = Errno{Code: 52034, Message: "download file fail", CNMessage: "下载文件失败"}
)
2 changes: 1 addition & 1 deletion dbm-services/common/go-pubpkg/errno/50000_dbpriv_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var (
CNMessage: "要求包含的字符类型大于字符串长度"}
TryTooManyTimes = Errno{Code: 51024, Message: "try too many times", CNMessage: "尝试太多次"}
RuleIdNull = Errno{Code: 51025, Message: "Rule ID should not be empty",
CNMessage: "安全规则的id不能为空"}
CNMessage: "规则的id不能为空"}
RuleNameNull = Errno{Code: 51026, Message: "Rule name should not be empty",
CNMessage: "安全规则的名称不能为空"}
RuleExisted = Errno{Code: 51027, Message: "Rule already existed ", CNMessage: "规则已存在"}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SET NAMES utf8;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SET NAMES utf8;
alter table mysql_partition_cron_log drop column bk_biz_id,drop column cluster_id,drop column ticket_id,
drop column immute_domain,drop column bk_cloud_id,drop column time_zone;
alter table spider_partition_cron_log drop column bk_biz_id,drop column cluster_id,drop column ticket_id,
drop column immute_domain,drop column bk_cloud_id,drop column time_zone;
286 changes: 0 additions & 286 deletions dbm-services/mysql/db-partition/cron/cron_basic_func.go

This file was deleted.

17 changes: 0 additions & 17 deletions dbm-services/mysql/db-partition/cron/cron_object.go

This file was deleted.

1 change: 1 addition & 0 deletions dbm-services/mysql/db-partition/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
github.com/spf13/viper v1.16.0
go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin v0.46.1
golang.org/x/exp v0.0.0-20230315142452-642cacee5cc0
golang.org/x/time v0.1.0
gopkg.in/natefinch/lumberjack.v2 v2.2.1
gorm.io/driver/mysql v1.5.1
gorm.io/gorm v1.25.4
Expand Down
2 changes: 2 additions & 0 deletions dbm-services/mysql/db-partition/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA=
golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
Expand Down
Loading

0 comments on commit ea3ed0b

Please sign in to comment.