Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
oceanbase
提交
faf723bb
O
oceanbase
项目概览
oceanbase
/
oceanbase
2 年多 前同步成功
通知
262
Star
6084
Fork
1301
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
faf723bb
编写于
11月 12, 2025
作者:
O
obdev
提交者:
ob-robot
11月 12, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] ls_task队列满问题新增隐藏配置项
上级
10499651
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
3 deletion
+12
-3
src/rootserver/backup/ob_backup_task_scheduler.cpp
src/rootserver/backup/ob_backup_task_scheduler.cpp
+7
-2
src/rootserver/backup/ob_backup_task_scheduler.h
src/rootserver/backup/ob_backup_task_scheduler.h
+1
-1
src/share/parameter/ob_parameter_seed.ipp
src/share/parameter/ob_parameter_seed.ipp
+4
-0
未找到文件。
src/rootserver/backup/ob_backup_task_scheduler.cpp
浏览文件 @
faf723bb
...
...
@@ -135,13 +135,18 @@ int ObBackupTaskSchedulerQueue::push_task(const ObBackupScheduleTask &task)
int
ObBackupTaskSchedulerQueue
::
push_task_without_lock_
(
const
ObBackupScheduleTask
&
task
)
{
int
ret
=
OB_SUCCESS
;
int64_t
queue_capacity
=
max_size_
;
omt
::
ObTenantConfigGuard
tenant_config
(
TENANT_CONF
(
gen_user_tenant_id
(
MTL_ID
())));
if
(
tenant_config
.
is_valid
()
&&
0
!=
tenant_config
->
_backup_task_queue_size
)
{
queue_capacity
=
tenant_config
->
_backup_task_queue_size
;
}
if
(
IS_NOT_INIT
)
{
ret
=
OB_NOT_INIT
;
LOG_WARN
(
"backup scheduler queue not inited"
,
K
(
ret
));
}
else
if
(
task_scheduler_
->
has_set_stop
())
{
}
else
if
(
get_task_cnt_
()
>=
max_size_
)
{
}
else
if
(
get_task_cnt_
()
>=
queue_capacity
)
{
ret
=
OB_SIZE_OVERFLOW
;
LOG_WARN
(
"task scheduler queue is full, cant't push task"
,
K
(
ret
),
K
(
get_task_cnt_
()));
LOG_WARN
(
"task scheduler queue is full, cant't push task"
,
K
(
ret
),
K
(
get_task_cnt_
())
,
K
(
queue_capacity
)
);
}
else
if
(
OB_FAIL
(
check_push_unique_task_
(
task
)))
{
LOG_WARN
(
"fail to check unique task"
,
K
(
ret
),
K
(
task
));
}
else
{
...
...
src/rootserver/backup/ob_backup_task_scheduler.h
浏览文件 @
faf723bb
...
...
@@ -141,7 +141,7 @@ private:
class
ObBackupTaskScheduler
:
public
ObBackupBaseService
{
public:
const
static
int64_t
MAX_BACKUP_TASK_QUEUE_LIMIT
=
1024
;
const
static
int64_t
MAX_BACKUP_TASK_QUEUE_LIMIT
=
2000
;
const
static
int64_t
CONCURRENCY_LIMIT_INTERVAL
=
10
*
60
*
1000000L
;
// 10min
const
static
int64_t
BACKUP_TASK_CONCURRENCY
=
1
;
const
static
int64_t
BACKUP_SERVER_DATA_LIMIT_INTERVAL
=
20
*
60
*
1000000
;
// 60 min;
...
...
src/share/parameter/ob_parameter_seed.ipp
浏览文件 @
faf723bb
...
...
@@ -1394,6 +1394,10 @@ ERRSIM_DEF_TIME(backup_lease_takeover_time, OB_CLUSTER_PARAMETER, "10s", "[1s, 5
"Lease Takeover Time for Rootserver Backup heartbeat. Range: [1s, 5m]",
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(_backup_task_queue_size, OB_TENANT_PARAMETER, "0", "[0, 100000]",
"the size of the backup task scheduler queue for each tenant. "
"Range: [0, 100000] in integer",
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
ERRSIM_DEF_TIME(trigger_auto_backup_delete_interval, OB_CLUSTER_PARAMETER, "1h", "[1s,)",
"trigger auto backup delete interval."
"The default value is 1h. Range: [1s,)",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录