Skip to content

Commit d89095e

Browse files
slice4erootMartin Dimitrovfilipecosta90
authored
Adding --test-time to memtier_benchmark-10Mkeys-load-hash-5-fields-with-100B-values-pipeline-10.yml (#100)
* delete the stopped container by default at tear down * fix test-time on 4 test-cases. * removed the -n parameter, since it was incompatible with --test-time and was causing the benchmark to fail * adding a test-time=180 to testcase memtier_benchmark-10Mkeys-load-hash-5-fields-with-100B-values-pipeline-10.yml * Re-order --preserve_temporary_client_dirs --client_aggregated_results_folder so that we can create an aggregated folder and still delete the temp files after. In addition, delete temp JSON files created by redis-benchmark (and not by memtier-benchmark) Co-authored-by: root <[email protected]> Co-authored-by: Martin Dimitrov <[email protected]> Co-authored-by: filipe oliveira <[email protected]>
1 parent 2b63c5b commit d89095e

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

redis_benchmarks_specification/__runner__/runner.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -506,17 +506,6 @@ def process_self_contained_coordinator_stream(
506506
)
507507
pass
508508

509-
if preserve_temporary_client_dirs is True:
510-
logging.info(
511-
"Preserving temporary client dir {}".format(
512-
temporary_dir_client
513-
)
514-
)
515-
else:
516-
logging.info(
517-
"Removing temporary client dir {}".format(temporary_dir_client)
518-
)
519-
shutil.rmtree(temporary_dir_client, ignore_errors=True)
520509
if client_aggregated_results_folder != "":
521510
os.makedirs(client_aggregated_results_folder, exist_ok=True)
522511
dest_fpath = "{}/{}".format(
@@ -531,6 +520,23 @@ def process_self_contained_coordinator_stream(
531520
shutil.copy(full_result_path, dest_fpath)
532521
overall_result &= test_result
533522

523+
if preserve_temporary_client_dirs is True:
524+
logging.info(
525+
"Preserving temporary client dir {}".format(
526+
temporary_dir_client
527+
)
528+
)
529+
else:
530+
if "redis-benchmark" in benchmark_tool:
531+
os.remove(full_result_path)
532+
logging.info(
533+
"Removing temporary JSON file".format(full_result_path)
534+
)
535+
shutil.rmtree(temporary_dir_client, ignore_errors=True)
536+
logging.info(
537+
"Removing temporary client dir {}".format(temporary_dir_client)
538+
)
539+
534540
table_name = "Results for entire test-suite".format(test_name)
535541
results_matrix_headers = [
536542
"Test Name",

redis_benchmarks_specification/test-suites/memtier_benchmark-10Mkeys-load-hash-5-fields-with-100B-values-pipeline-10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build-variants:
1717
clientconfig:
1818
run_image: redislabs/memtier_benchmark:edge
1919
tool: memtier_benchmark
20-
arguments: '--test-time 180 "--pipeline" "10" "--data-size" "100" --command "HSET __key__ field1 __data__ field2 __data__ field3 __data__ field4 __data__ field5 __data__" "--command-key-pattern" "P" --key-minimum=1 --key-maximum 10000000 -c 50 -t 4 --hide-histogram'
20+
arguments: '"--pipeline" "10" "--data-size" "100" --command "HSET __key__ field1 __data__ field2 __data__ field3 __data__ field4 __data__ field5 __data__" "--command-key-pattern" "P" --key-minimum=1 --key-maximum 10000000 -c 50 -t 4 --hide-histogram --test-time=180'
2121
resources:
2222
requests:
2323
cpus: "4"

0 commit comments

Comments
 (0)