branch-2.1: [fix](backup) Automatic adapt upload/download snapshot batch size #44560 (#44641)

Cherry-picked from #44560

Co-authored-by: walter <maochuan@selectdb.com>
This commit is contained in:
github-actions[bot]
2024-11-28 13:43:33 +08:00
committed by GitHub
parent ddaaac5b44
commit dd4708af47
3 changed files with 25 additions and 42 deletions

View File

@ -2664,16 +2664,17 @@ public class Config extends ConfigBase {
public static String nereids_trace_log_dir = System.getenv("LOG_DIR") + "/nereids_trace";
@ConfField(mutable = true, masterOnly = true, description = {
"备份过程中,分配给每个be的upload任务最大个数,默认值为3个。",
"The max number of upload tasks assigned to each be during the backup process, the default value is 3."
"备份过程中,一个 upload 任务上传的快照数量上限,默认值为10个",
"The max number of snapshots assigned to a upload task during the backup process, the default value is 10."
})
public static int backup_upload_task_num_per_be = 3;
public static int backup_upload_snapshot_batch_size = 10;
@ConfField(mutable = true, masterOnly = true, description = {
"恢复过程中,分配给每个be的download任务最大个数,默认值为3个。",
"The max number of download tasks assigned to each be during the restore process, the default value is 3."
"恢复过程中,一个 download 任务下载的快照数量上限,默认值为10个",
"The max number of snapshots assigned to a download task during the restore process, "
+ "the default value is 10."
})
public static int restore_download_task_num_per_be = 3;
public static int restore_download_snapshot_batch_size = 10;
@ConfField(mutable = true, masterOnly = true, description = {
"备份恢复过程中,单次 RPC 分配给每个be的任务最大个数,默认值为10000个。",