Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
92bf5a13
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
92bf5a13
编写于
3月 24, 2020
作者:
A
alexey-milovidov
提交者:
GitHub
3月 24, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #9819 from ClickHouse/aku/perf-comparison
Some tweaks for performance comparison
上级
10b4b053
fe1eb691
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
37 deletion
+6
-37
docker/test/performance-comparison/compare.sh
docker/test/performance-comparison/compare.sh
+3
-35
docker/test/performance-comparison/config/config.d/perf-comparison-tweaks-config.xml
...parison/config/config.d/perf-comparison-tweaks-config.xml
+1
-2
docker/test/performance-comparison/report.py
docker/test/performance-comparison/report.py
+2
-0
未找到文件。
docker/test/performance-comparison/compare.sh
浏览文件 @
92bf5a13
...
...
@@ -9,40 +9,7 @@ stage=${stage:-}
function
configure
{
# Use the new config for both servers, so that we can change it in a PR.
mkdir
right/config/users.d
||
:
mkdir
right/config/config.d
||
:
# FIXME delete these two configs when the performance.tgz with configs rolls out.
cat
>
right/config/config.d/zz-perf-test-tweaks-config.xml
<<
EOF
<yandex>
<logger>
<console>true</console>
</logger>
<text_log remove="remove">
<table remove="remove"/>
</text_log>
<use_uncompressed_cache>0</use_uncompressed_cache>
<!--1 GB-->
<uncompressed_cache_size>1000000000</uncompressed_cache_size>
</yandex>
EOF
cat
>
right/config/users.d/zz-perf-test-tweaks-users.xml
<<
EOF
<yandex>
<profiles>
<default>
<query_profiler_real_time_period_ns>10000000</query_profiler_real_time_period_ns>
<query_profiler_cpu_time_period_ns>0</query_profiler_cpu_time_period_ns>
<allow_introspection_functions>1</allow_introspection_functions>
<log_queries>1</log_queries>
</default>
</profiles>
</yandex>
EOF
rm
right/config/config.d/text_log.xml
||
:
cp
-rv
right/config left
||
:
sed
-i
's/<tcp_port>9000/<tcp_port>9001/g'
left/config/config.xml
...
...
@@ -242,7 +209,8 @@ done
rm
./
*
.
{
rep,svg
}
test-times.tsv test-dump.tsv unstable.tsv unstable-query-ids.tsv unstable-query-metrics.tsv changed-perf.tsv unstable-tests.tsv unstable-queries.tsv bad-tests.tsv slow-on-client.tsv all-queries.tsv
||
:
right/clickhouse
local
--query
"
create table queries engine Memory as select
create table queries engine File(TSVWithNamesAndTypes, 'queries.tsv')
as select
replaceAll(_file, '-report.tsv', '') test,
-- FIXME Comparison mode doesn't make sense for queries that complete
...
...
@@ -382,7 +350,7 @@ create table stacks engine File(TSV, 'stacks.rep') as
join unstable_query_runs using query_id
group by query, trace
;
"
||
:
"
2>> report-errors.txt
||
:
IFS
=
$'
\n
'
for
query
in
$(
cut
-d
' '
-f1
stacks.rep |
sort
|
uniq
)
...
...
docker/test/performance-comparison/config/config.d/perf-comparison-tweaks-config.xml
浏览文件 @
92bf5a13
...
...
@@ -14,7 +14,6 @@
<collect_interval_milliseconds>
1000
</collect_interval_milliseconds>
</metric_log>
<use_uncompressed_cache>
0
</use_uncompressed_cache>
<!--64 GiB-->
<use_uncompressed_cache>
1
</use_uncompressed_cache>
<uncompressed_cache_size>
1000000000
</uncompressed_cache_size>
</yandex>
docker/test/performance-comparison/report.py
浏览文件 @
92bf5a13
...
...
@@ -242,6 +242,8 @@ def print_test_times():
print_test_times
()
# Add the errors reported by various steps of comparison script
report_errors
+=
tsvRows
(
'report-errors.txt'
)
if
len
(
report_errors
):
print
(
tableStart
(
'Errors while building the report'
))
print
(
tableHeader
([
'Error'
]))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录