This commit is contained in:
Alexander Kuzmenkov 2020-06-12 18:11:33 +03:00
parent 0da6e1c9de
commit 5101708831
2 changed files with 7 additions and 2 deletions

View File

@ -171,8 +171,11 @@ function run_benchmark
# TODO disable this when there is an explicit list of tests to run
"$script_dir/perf.py" --print right/performance/website.xml > benchmark/website-queries.tsv
clickhouse-benchmark --port 9001 --concurrency 6 --cumulative --iterations 1000 --randomize 1 --delay 0 --json benchmark/website-left.json < benchmark/website-queries.tsv
clickhouse-benchmark --port 9002 --concurrency 6 --cumulative --iterations 1000 --randomize 1 --delay 0 --json benchmark/website-right.json < benchmark/website-queries.tsv
# TODO things to fix in clickhouse-benchmark:
# - --max_memory_usage setting does nothing
# - no way to continue on error
clickhouse-benchmark --port 9001 --concurrency 6 --cumulative --iterations 1000 --randomize 1 --delay 0 --json benchmark/website-left.json -- --max_memory_usage 30000000000 < benchmark/website-queries.tsv
clickhouse-benchmark --port 9002 --concurrency 6 --cumulative --iterations 1000 --randomize 1 --delay 0 --json benchmark/website-right.json -- --max_memory_usage 30000000000 < benchmark/website-queries.tsv
}
function get_profiles_watchdog

View File

@ -6,6 +6,8 @@
<allow_introspection_functions>1</allow_introspection_functions>
<log_queries>1</log_queries>
<metrics_perf_events_enabled>1</metrics_perf_events_enabled>
<!--FIXME support this setting in clickhouse-benchmark (see compare.sh, run-benchmark function)-->
<max_memory_usage>30000000000</max_memory_usage>
</default>
</profiles>
</yandex>