Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Iotdb
提交
b263bf0b
I
Iotdb
项目概览
apache
/
Iotdb
大约 1 年 前同步成功
通知
25
Star
3344
Fork
916
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iotdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b263bf0b
编写于
7月 03, 2020
作者:
Q
qiaojialin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change flush vm times to 11 and add log
上级
cff8f1d6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
4 deletion
+7
-4
server/src/assembly/resources/conf/iotdb-engine.properties
server/src/assembly/resources/conf/iotdb-engine.properties
+1
-1
server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
...r/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+3
-3
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
.../apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
+3
-0
未找到文件。
server/src/assembly/resources/conf/iotdb-engine.properties
浏览文件 @
b263bf0b
...
...
@@ -262,7 +262,7 @@ max_vm_num=5
merge_chunk_point_number
=
10000
# When vmfiles merge times exceeds this, merge the vmfile to the tsfile.
max_merge_chunk_num_in_tsfile
=
9
max_merge_chunk_num_in_tsfile
=
11
# How many thread will be set up to perform merge main tasks, 1 by default.
# Set to 1 when less than or equal to 0.
...
...
server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
浏览文件 @
b263bf0b
...
...
@@ -236,12 +236,12 @@ public class IoTDBConfig {
/**
* When a TsFile's file size (in byte) exceed this, the TsFile is forced closed.
*/
private
long
tsFileSizeThreshold
=
512
*
1024
*
1024L
;
private
long
tsFileSizeThreshold
=
128
*
1024
*
1024L
;
/**
* When a memTable's size (in byte) exceeds this, the memtable is flushed to disk.
*/
private
long
memtableSizeThreshold
=
128
*
1024
*
1024L
;
private
long
memtableSizeThreshold
=
64
*
1024
*
1024L
;
/**
* When average series point number reaches this, flush the memtable to disk
...
...
@@ -256,7 +256,7 @@ public class IoTDBConfig {
/**
* When vmfiles merge times exceeds this, merge the vmfile to the tsfile.
*/
private
int
maxMergeChunkNumInTsFile
=
5
;
private
int
maxMergeChunkNumInTsFile
=
11
;
/**
* whether to cache meta data(ChunkMetaData and TsFileMetaData) or not.
...
...
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
浏览文件 @
b263bf0b
...
...
@@ -702,6 +702,7 @@ public class TsFileProcessor {
if
((
vmPointNum
+
memTableToFlush
.
getTotalPointsNum
())
/
pathMeasurementSchemaMap
.
size
()
>
config
.
getMergeChunkPointNumberThreshold
()
||
flushVmTimes
>=
config
.
getMaxMergeChunkNumInTsFile
())
{
logger
.
info
(
"[Flush] merge {} vms to TsFile"
,
vmTsFileResources
.
size
()
+
1
);
isVm
=
false
;
isFull
=
false
;
flushVmTimes
=
0
;
...
...
@@ -712,6 +713,7 @@ public class TsFileProcessor {
}
else
{
// merge vm files
if
(
config
.
getMaxVmNum
()
<=
vmTsFileResources
.
size
())
{
logger
.
info
(
"[Flush] merge {} vms to vm"
,
vmTsFileResources
.
size
()
+
1
);
isVm
=
true
;
isFull
=
true
;
flushTask
=
new
MemTableFlushTask
(
memTableToFlush
,
writer
,
vmTsFileResources
,
...
...
@@ -719,6 +721,7 @@ public class TsFileProcessor {
sequence
,
storageGroupName
);
}
else
{
logger
.
info
(
"[Flush] flush a vm"
);
isVm
=
true
;
isFull
=
false
;
File
newVmFile
=
createNewVMFile
(
tsFileResource
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录