Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Iotdb
提交
cff8f1d6
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,发现更多精彩内容 >>
提交
cff8f1d6
编写于
7月 03, 2020
作者:
Q
qiaojialin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change vm mergeTimes to flushTimes
上级
c493621b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
10 deletion
+10
-10
server/src/assembly/resources/conf/iotdb-engine.properties
server/src/assembly/resources/conf/iotdb-engine.properties
+6
-6
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
.../apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
+4
-4
未找到文件。
server/src/assembly/resources/conf/iotdb-engine.properties
浏览文件 @
cff8f1d6
...
...
@@ -183,12 +183,6 @@ memtable_size_threshold=1073741824
avg_series_point_number_threshold
=
100000
# When merge point number reaches this, merge the vmfile to the tsfile.
merge_chunk_point_number
=
10000
# When vmfiles merge times exceeds this, merge the vmfile to the tsfile.
max_merge_chunk_num_in_tsfile
=
5
# How many threads can concurrently flush. When <= 0, use CPU core number.
concurrent_flush_thread
=
0
...
...
@@ -264,6 +258,12 @@ enable_vm=true
# The max vm num of each memtable. When vm num exceeds this, the vm files will merge to one.
max_vm_num
=
5
# When merge point number reaches this, merge the vmfile to the tsfile.
merge_chunk_point_number
=
10000
# When vmfiles merge times exceeds this, merge the vmfile to the tsfile.
max_merge_chunk_num_in_tsfile
=
9
# 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.
merge_thread_num
=
1
...
...
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
浏览文件 @
cff8f1d6
...
...
@@ -125,7 +125,7 @@ public class TsFileProcessor {
private
boolean
sequence
;
private
long
totalMemTableSize
;
private
int
merge
Times
=
0
;
private
int
flushVm
Times
=
0
;
private
static
final
String
FLUSH_QUERY_WRITE_LOCKED
=
"{}: {} get flushQueryLock write lock"
;
private
static
final
String
FLUSH_QUERY_WRITE_RELEASE
=
"{}: {} get flushQueryLock write lock released"
;
...
...
@@ -661,6 +661,7 @@ public class TsFileProcessor {
}
// signal memtable only may appear when calling asyncClose()
if
(!
memTableToFlush
.
isSignalMemTable
())
{
flushVmTimes
++;
try
{
boolean
isVm
=
false
;
boolean
isFull
=
false
;
...
...
@@ -700,10 +701,10 @@ public class TsFileProcessor {
}
if
((
vmPointNum
+
memTableToFlush
.
getTotalPointsNum
())
/
pathMeasurementSchemaMap
.
size
()
>
config
.
getMergeChunkPointNumberThreshold
()
||
merge
Times
>=
config
.
getMaxMergeChunkNumInTsFile
())
{
||
flushVm
Times
>=
config
.
getMaxMergeChunkNumInTsFile
())
{
isVm
=
false
;
isFull
=
false
;
merge
Times
=
0
;
flushVm
Times
=
0
;
flushTask
=
new
MemTableFlushTask
(
memTableToFlush
,
writer
,
vmTsFileResources
,
vmWriters
,
false
,
false
,
sequence
,
...
...
@@ -717,7 +718,6 @@ public class TsFileProcessor {
vmWriters
,
true
,
true
,
sequence
,
storageGroupName
);
mergeTimes
++;
}
else
{
isVm
=
true
;
isFull
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录