[ 
https://issues.apache.org/jira/browse/IOTDB-4815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17628631#comment-17628631
 ] 

Minghui Liu commented on IOTDB-4815:
------------------------------------

目前已经确定 1C1D 相对 new-server 性能下降的原因:

在1C1D架构中,查询过程每次请求元数据信息都要通过 ClusterSchemaFetcher 发起 RPC 请求,相对于 new-server 
LocalSchemaFetcher 的本地调用,存在通信、序列化等额外开销。

 

实验验证:顺序数据集,数据量约 7G,执行 Q2-2。

new-server 耗时 314.70ms

1C1D 耗时 347.55ms,多了约 33ms

 

通过采样发现,ClusterSchemaFetcher 耗时占 1C1D 总耗时的 10% 左右,跟多出的耗时基本吻合。

!SchemaFetcher对比.png|width=979,height=528!

 

附:完整采样文件

[^new.jps]

[^1c1d.jps]

> [Query Performance] Compare performance of 1C1D with "start-server.sh” 
> -----------------------------------------------------------------------
>
>                 Key: IOTDB-4815
>                 URL: https://issues.apache.org/jira/browse/IOTDB-4815
>             Project: Apache IoTDB
>          Issue Type: Improvement
>    Affects Versions: 0.14.0-SNAPSHOT
>            Reporter: FengQingxin
>            Assignee: Minghui Liu
>            Priority: Major
>         Attachments: 1c1d.jps, SchemaFetcher对比.png, 
> image-2022-11-01-09-39-04-146.png, new.jps
>
>
> commit_id:6e089fb
> Reproduce Steps:
> 1.Git pull the latest master code,then build it with command "mvn clean 
> package -pl distribution -am -DskipTests"
> 2.Modify the config as bellow:
> MAX_HEAP_SIZE="20G"
> enable_partition=false
> enable_seq_space_compaction=false
> enable_unseq_space_compaction=false
> enable_cross_space_compaction=false
> enableMetric: true
> 3.Start 1C1D
> 4.Load data with cli
> 5.Execute the query test
> !image-2022-11-01-09-39-04-146.png|width=549,height=268!
> B.R
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to