Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#2943 from wangyu096/issue_2929
Browse files Browse the repository at this point in the history
feat: 执行历史归档源 DB 支持独立配置 TencentBlueKing#2929
  • Loading branch information
wangyu096 authored Apr 28, 2024
2 parents 9e0c7f4 + 02326c2 commit 7ef3d7a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
18 changes: 9 additions & 9 deletions support-files/kubernetes/charts/bk-job/VALUES_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ backupConfig:
# 归档任务运行的cron表达式,默认每天凌晨04:00
cron: 0 0 4 * * *
# 热库中的数据保留时间(天)
keep_days: 30
keeyDays: 30
# 归档数据读取时每次读取的数据量(单个表),服务内存受限时可适当降低该值
read_id_step_size: 1000
readIdStepSize: 1000
# 每次从 db 表中读取的行数
read_row_limit: 10000
readRowLimit: 10000
# 归档数据写入归档库时每次写入的数据量(单个表),服务内存受限时可适当降低该值
batch_insert_row_size: 1000
batchInsertRowSize: 1000
# 每次执行删除的最大行数。为了减少 MySQL 事务时长,DB 性能受限时可适当降低该值
delete_row_limit: 1000
deleteRowLimit: 1000
# 表作用域的归档配置,会覆盖全局配置
tableConfigs:
# 表名
task_instance:
# 归档数据读取时每次读取的数据量(单个表),服务内存受限时可适当降低该值
read_id_step_size: 2000
readIdStepSize: 2000
# 每次从 db 表中读取的行数
read_row_limit: 20000
readRowLimit: 20000
# 归档数据写入归档库时每次写入的数据量(单个表),服务内存受限时可适当降低该值
batch_insert_row_size: 2000
batchInsertRowSize: 2000
# 每次执行删除的最大行数。为了减少 MySQL 事务时长,DB 性能受限时可适当降低该值
delete_row_limit: 2000
deleteRowLimit: 2000
```
## 0.5.8
Expand Down
8 changes: 5 additions & 3 deletions support-files/kubernetes/charts/bk-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1108,11 +1108,13 @@ backupConfig:
# 归档任务运行的cron表达式,默认每天凌晨04:00
cron: 0 0 4 * * *
# 热库中的数据保留时间(天)
keep_days: 30
keeyDays: 30
# 归档数据读取时每次读取的数据量(单个表),服务内存受限时可适当降低该值
read_id_step_size: 1000
readIdStepSize: 1000
# 归档数据写入归档库时每次写入的数据量(单个表),服务内存受限时可适当降低该值
batch_insert_row_size: 1000
batchInsertRowSize: 1000
# 每次执行删除的最大行数。为了减少 MySQL 事务时长,DB 性能受限时可适当降低该值
deleteRowLimit: 1000
image:
registry: hub.bktencent.com
repository: blueking/job-backup
Expand Down

0 comments on commit 7ef3d7a

Please sign in to comment.