Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不争之德
oceanbase
提交
0dabb16d
O
oceanbase
项目概览
不争之德
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0dabb16d
编写于
10月 03, 2022
作者:
O
obdev
提交者:
wangzelin.wzl
10月 03, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] set ArcClogTask count upper limit
上级
e5081695
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
9 addition
and
1 deletion
+9
-1
src/archive/ob_archive_allocator.cpp
src/archive/ob_archive_allocator.cpp
+8
-1
src/archive/ob_log_archive_define.h
src/archive/ob_log_archive_define.h
+1
-0
未找到文件。
src/archive/ob_archive_allocator.cpp
浏览文件 @
0dabb16d
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#include "ob_log_archive_struct.h"
#include "ob_log_archive_struct.h"
#include "ob_archive_allocator.h"
#include "ob_archive_allocator.h"
#include "ob_archive_task_queue.h"
#include "ob_archive_task_queue.h"
#include "ob_log_archive_define.h"
#include "lib/ob_running_mode.h" // is_mini_mode
#include "lib/ob_running_mode.h" // is_mini_mode
using
namespace
oceanbase
;
using
namespace
oceanbase
;
...
@@ -35,12 +36,18 @@ int ObArchiveAllocator::init()
...
@@ -35,12 +36,18 @@ int ObArchiveAllocator::init()
const
int64_t
clog_task_size
=
sizeof
(
ObPGArchiveCLogTask
);
const
int64_t
clog_task_size
=
sizeof
(
ObPGArchiveCLogTask
);
const
int64_t
clog_task_status_size
=
sizeof
(
ObArchiveCLogTaskStatus
);
const
int64_t
clog_task_status_size
=
sizeof
(
ObArchiveCLogTaskStatus
);
const
int64_t
send_task_status_size
=
sizeof
(
ObArchiveSendTaskStatus
);
const
int64_t
send_task_status_size
=
sizeof
(
ObArchiveSendTaskStatus
);
const
int64_t
DEFAULT_MIN_OBJ_COUNT_ON_BLOCK
=
1
;
const
int64_t
UNUSED_HOLD_LIMIT
=
0
;
const
int64_t
UNUSED_HOLD_LIMIT
=
0
;
if
(
OB_UNLIKELY
(
inited_
))
{
if
(
OB_UNLIKELY
(
inited_
))
{
ret
=
OB_INIT_TWICE
;
ret
=
OB_INIT_TWICE
;
ARCHIVE_LOG
(
ERROR
,
"ObArchiveAllocator has been inited"
,
KR
(
ret
));
ARCHIVE_LOG
(
ERROR
,
"ObArchiveAllocator has been inited"
,
KR
(
ret
));
}
else
if
(
OB_FAIL
(
clog_task_allocator_
.
init
(
clog_task_size
,
"ArcCLogTask"
)))
{
}
else
if
(
OB_FAIL
(
clog_task_allocator_
.
init
(
clog_task_size
,
"ArcCLogTask"
,
common
::
OB_SERVER_TENANT_ID
,
common
::
OB_MALLOC_NORMAL_BLOCK_SIZE
,
DEFAULT_MIN_OBJ_COUNT_ON_BLOCK
,
MAX_ARCHIVE_TASK_COUNT_LIMIT
)))
{
ARCHIVE_LOG
(
WARN
,
"clog_task_allocator_ init fail"
,
KR
(
ret
));
ARCHIVE_LOG
(
WARN
,
"clog_task_allocator_ init fail"
,
KR
(
ret
));
}
else
if
(
OB_FAIL
(
send_task_allocator_
.
init
(
SEND_TASK_CAPACITY_LIMIT
,
UNUSED_HOLD_LIMIT
,
SEND_TASK_PAGE_SIZE
)))
{
}
else
if
(
OB_FAIL
(
send_task_allocator_
.
init
(
SEND_TASK_CAPACITY_LIMIT
,
UNUSED_HOLD_LIMIT
,
SEND_TASK_PAGE_SIZE
)))
{
ARCHIVE_LOG
(
WARN
,
"send_task_allocator_ init fail"
,
KR
(
ret
));
ARCHIVE_LOG
(
WARN
,
"send_task_allocator_ init fail"
,
KR
(
ret
));
...
...
src/archive/ob_log_archive_define.h
浏览文件 @
0dabb16d
...
@@ -51,6 +51,7 @@ static const int64_t SEND_TASK_CAPACITY_LIMIT = 1 * 1024 * 1024 * 1024L; // 1G
...
@@ -51,6 +51,7 @@ static const int64_t SEND_TASK_CAPACITY_LIMIT = 1 * 1024 * 1024 * 1024L; // 1G
static
const
int64_t
SEND_TASK_PAGE_SIZE
=
common
::
OB_MALLOC_MIDDLE_BLOCK_SIZE
;
static
const
int64_t
SEND_TASK_PAGE_SIZE
=
common
::
OB_MALLOC_MIDDLE_BLOCK_SIZE
;
static
const
int64_t
ARCHIVE_THREAD_WAIT_INTERVAL
=
100
*
1000L
;
static
const
int64_t
ARCHIVE_THREAD_WAIT_INTERVAL
=
100
*
1000L
;
static
const
int64_t
MAX_ARCHIVE_THREAD_NAME_LENGTH
=
50
;
static
const
int64_t
MAX_ARCHIVE_THREAD_NAME_LENGTH
=
50
;
static
const
int64_t
MAX_ARCHIVE_TASK_COUNT_LIMIT
=
500
*
1000L
;
static
const
int64_t
MAX_ARCHIVE_TASK_STATUS_QUEUE_CAPACITY
=
common
::
OB_MAX_PARTITION_NUM_PER_SERVER
;
static
const
int64_t
MAX_ARCHIVE_TASK_STATUS_QUEUE_CAPACITY
=
common
::
OB_MAX_PARTITION_NUM_PER_SERVER
;
static
const
int64_t
MAX_ARCHIVE_TASK_STATUS_POP_TIMEOUT
=
100
*
1000L
;
static
const
int64_t
MAX_ARCHIVE_TASK_STATUS_POP_TIMEOUT
=
100
*
1000L
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录