1515from redisbench_admin .run .aibench_run_inference_redisai_vision .aibench_run_inference_redisai_vision import (
1616 prepare_aibench_benchmark_command ,
1717)
18- from redisbench_admin .run .ann .ann import prepare_ann_benchmark_command
18+ from redisbench_admin .run .ann .ann import (
19+ prepare_ann_benchmark_command ,
20+ ANN_MULTIRUN_PATH ,
21+ )
1922from redisbench_admin .run .ftsb .ftsb import prepare_ftsb_benchmark_command
2023from redisbench_admin .run .memtier_benchmark .memtier_benchmark import (
2124 prepare_memtier_benchmark_command ,
4043 parse_exporter_timemetric_definition ,
4144 check_required_modules ,
4245)
46+ from redisbench_admin .utils .redisgraph_benchmark_go import (
47+ get_redisbench_admin_remote_path ,
48+ )
4349from redisbench_admin .utils .remote import (
4450 extract_perversion_timeseries_from_results ,
4551 extract_perbranch_timeseries_from_results ,
@@ -58,6 +64,10 @@ def prepare_benchmark_parameters(
5864 current_workdir = None ,
5965 cluster_api_enabled = False ,
6066 config_key = "clientconfig" ,
67+ client_public_ip = None ,
68+ username = None ,
69+ private_key = None ,
70+ client_ssh_port = None ,
6171):
6272 command_arr = None
6373 command_str = None
@@ -76,6 +86,10 @@ def prepare_benchmark_parameters(
7686 remote_results_file ,
7787 server_plaintext_port ,
7888 server_private_ip ,
89+ client_public_ip ,
90+ username ,
91+ private_key ,
92+ client_ssh_port ,
7993 )
8094 # v0.4 spec
8195 elif type (benchmark_config [config_key ]) == dict :
@@ -91,6 +105,10 @@ def prepare_benchmark_parameters(
91105 remote_results_file ,
92106 server_plaintext_port ,
93107 server_private_ip ,
108+ client_public_ip ,
109+ username ,
110+ private_key ,
111+ client_ssh_port ,
94112 )
95113 printed_command_str = command_str
96114 printed_command_arr = command_arr
@@ -116,6 +134,10 @@ def prepare_benchmark_parameters_specif_tooling(
116134 remote_results_file ,
117135 server_plaintext_port ,
118136 server_private_ip ,
137+ client_public_ip ,
138+ username ,
139+ private_key ,
140+ client_ssh_port ,
119141):
120142 if "redis-benchmark" in benchmark_tool :
121143 command_arr , command_str = prepare_redis_benchmark_command (
@@ -178,13 +200,22 @@ def prepare_benchmark_parameters_specif_tooling(
178200 remote_results_file ,
179201 )
180202 if "ann" in benchmark_tool :
203+ ann_path = ANN_MULTIRUN_PATH
204+ if isremote is True :
205+ [recv_exit_status , stdout , stderr ] = get_redisbench_admin_remote_path (
206+ client_public_ip , username , private_key , client_ssh_port
207+ )[0 ]
208+ ann_path = stdout [0 ].strip () + "/run/ann/pkg/multirun.py"
209+ logging .info ("Remote ann-benchmark path: {}" .format (ann_path ))
210+
181211 (command_arr , command_str ,) = prepare_ann_benchmark_command (
182212 server_private_ip ,
183213 server_plaintext_port ,
184214 cluster_api_enabled ,
185215 entry ,
186216 remote_results_file ,
187217 current_workdir ,
218+ ann_path ,
188219 )
189220 if "ftsb_" in benchmark_tool :
190221 input_data_file = None
0 commit comments