Skip to content

Commit ca36b29

Browse files
Fixed timeout issues when pushing benchmark timeseries data (#448)
* architecture aware benchmark client link downloads * Fixed timeout issues when pushing benchmark timeseries data
1 parent 3a0448d commit ca36b29

File tree

13 files changed

+88
-44
lines changed

13 files changed

+88
-44
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.11.26"
3+
version = "0.11.32"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
66
readme = "README.md"

redisbench_admin/compare/compare.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def compare_command_logic(args, project_name, project_version):
4949
port=args.redistimeseries_port,
5050
password=args.redistimeseries_pass,
5151
username=args.redistimeseries_user,
52+
retry_on_timeout=True,
5253
)
5354
rts.ping()
5455
default_baseline_branch = None

redisbench_admin/export/export.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def export_command_logic(args, project_name, project_version):
172172
host=args.redistimeseries_host,
173173
port=args.redistimeseries_port,
174174
password=args.redistimeseries_pass,
175+
retry_on_timeout=True,
175176
)
176177
try:
177178
rts.ping()

redisbench_admin/run/ftsb/ftsb.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ def prepare_ftsb_benchmark_command(
5555

5656

5757
def extract_ftsb_extra_links(
58-
benchmark_config, benchmark_tool, config_key="clientconfig"
58+
benchmark_config, benchmark_tool, config_key="clientconfig", architecture="x86_64"
5959
):
6060
remote_tool_link = "/tmp/{}".format(benchmark_tool)
61+
arch_txt = "amd64"
62+
if architecture == "aarch64":
63+
arch_txt = "arm64"
64+
6165
tool_link = (
6266
"https://s3.amazonaws.com/benchmarks.redislabs/"
63-
+ "redisearch/tools/ftsb/{}_linux_amd64".format(benchmark_tool)
67+
+ f"redisearch/tools/ftsb/{benchmark_tool}_linux_{arch_txt}"
6468
)
6569
queries_file_link = None
6670
for entry in benchmark_config[config_key]:

redisbench_admin/run/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def define_benchmark_plan(benchmark_definitions, default_specs):
124124
logging.info(f"FINAL DB CONFIG: {final_db_config}")
125125
test_benchmark_config["dbconfig"] = final_db_config
126126

127-
logging.info(
127+
logging.debug(
128128
f"final benchmark config for setup: {setup_name} and test: {test_name}. {test_benchmark_config}"
129129
)
130130
# add benchmark

redisbench_admin/run_local/run_local.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def run_local_command_logic(args, project_name, project_version):
129129
host=args.redistimeseries_host,
130130
port=args.redistimeseries_port,
131131
password=args.redistimeseries_pass,
132+
retry_on_timeout=True,
132133
)
133134
rts.ping()
134135

redisbench_admin/run_remote/remote_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def run_remote_client_tool(
5353
redis_conns=[],
5454
do_post_process=True,
5555
redis_password=None,
56+
architecture="x86_64",
5657
):
5758
(
5859
benchmark_min_tool_version,
@@ -83,6 +84,7 @@ def run_remote_client_tool(
8384
arch_str,
8485
client_ssh_port,
8586
private_key,
87+
architecture,
8688
)
8789
if "ann-benchmarks" in benchmark_tool:
8890
logging.info(

redisbench_admin/run_remote/remote_db.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def remote_db_spin(
104104
ignore_keyspace_errors=False,
105105
continue_on_module_check_error=False,
106106
keyspace_check_timeout=60,
107+
architecture="x86_64",
107108
):
108109
(
109110
_,
@@ -135,6 +136,7 @@ def remote_db_spin(
135136
username,
136137
continue_on_module_check_error,
137138
)
139+
logging.info(f"final remote module files {remote_module_files}...")
138140
# setup Redis
139141
redis_setup_result = True
140142
redis_conns = []
@@ -337,6 +339,7 @@ def remote_db_spin(
337339
[],
338340
False,
339341
redis_password,
342+
architecture,
340343
)
341344
logging.info(
342345
"Finished loading the data via client tool. Took {} seconds. Result={}".format(

redisbench_admin/run_remote/remote_helpers.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ def remote_tool_pre_bench_step(
6666
arch_str,
6767
client_ssh_port,
6868
private_key,
69+
architecture="x86_64",
6970
):
70-
logging.info("Settting up remote tool {} requirements".format(benchmark_tool))
71+
logging.info(
72+
f"Settting up remote tool {benchmark_tool} requirements. architecture ={architecture}"
73+
)
7174
if benchmark_tool == "redisgraph-benchmark-go":
7275
setup_remote_benchmark_tool_redisgraph_benchmark_go(
7376
client_public_ip,
@@ -90,7 +93,9 @@ def remote_tool_pre_bench_step(
9093
queries_file_link,
9194
remote_tool_link,
9295
tool_link,
93-
) = extract_ftsb_extra_links(benchmark_config, benchmark_tool, config_key)
96+
) = extract_ftsb_extra_links(
97+
benchmark_config, benchmark_tool, config_key, architecture
98+
)
9499
logging.info(
95100
"FTSB Extracted:\nremote tool input: {}\nremote tool link: {}\ntool path: {}".format(
96101
queries_file_link, remote_tool_link, tool_link

redisbench_admin/run_remote/run_remote.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def run_remote_command_logic(args, project_name, project_version):
276276
host=args.redistimeseries_host,
277277
port=args.redistimeseries_port,
278278
password=args.redistimeseries_pass,
279+
retry_on_timeout=True,
279280
)
280281
rts.ping()
281282

@@ -553,6 +554,8 @@ def run_remote_command_logic(args, project_name, project_version):
553554
flushall_on_every_test_start,
554555
ignore_keyspace_errors,
555556
continue_on_module_check_error,
557+
60,
558+
architecture,
556559
)
557560
if benchmark_type == "read-only":
558561
ro_benchmark_set(
@@ -698,6 +701,7 @@ def run_remote_command_logic(args, project_name, project_version):
698701
redis_conns,
699702
True,
700703
redis_password,
704+
architecture,
701705
)
702706

703707
if profilers_enabled:

0 commit comments

Comments
 (0)