15
15
from redisbench_admin .run .aibench_run_inference_redisai_vision .aibench_run_inference_redisai_vision import (
16
16
prepare_aibench_benchmark_command ,
17
17
)
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
+ )
19
22
from redisbench_admin .run .ftsb .ftsb import prepare_ftsb_benchmark_command
20
23
from redisbench_admin .run .memtier_benchmark .memtier_benchmark import (
21
24
prepare_memtier_benchmark_command ,
40
43
parse_exporter_timemetric_definition ,
41
44
check_required_modules ,
42
45
)
46
+ from redisbench_admin .utils .redisgraph_benchmark_go import (
47
+ get_redisbench_admin_remote_path ,
48
+ )
43
49
from redisbench_admin .utils .remote import (
44
50
extract_perversion_timeseries_from_results ,
45
51
extract_perbranch_timeseries_from_results ,
@@ -58,6 +64,10 @@ def prepare_benchmark_parameters(
58
64
current_workdir = None ,
59
65
cluster_api_enabled = False ,
60
66
config_key = "clientconfig" ,
67
+ client_public_ip = None ,
68
+ username = None ,
69
+ private_key = None ,
70
+ client_ssh_port = None ,
61
71
):
62
72
command_arr = None
63
73
command_str = None
@@ -76,6 +86,10 @@ def prepare_benchmark_parameters(
76
86
remote_results_file ,
77
87
server_plaintext_port ,
78
88
server_private_ip ,
89
+ client_public_ip ,
90
+ username ,
91
+ private_key ,
92
+ client_ssh_port ,
79
93
)
80
94
# v0.4 spec
81
95
elif type (benchmark_config [config_key ]) == dict :
@@ -91,6 +105,10 @@ def prepare_benchmark_parameters(
91
105
remote_results_file ,
92
106
server_plaintext_port ,
93
107
server_private_ip ,
108
+ client_public_ip ,
109
+ username ,
110
+ private_key ,
111
+ client_ssh_port ,
94
112
)
95
113
printed_command_str = command_str
96
114
printed_command_arr = command_arr
@@ -116,6 +134,10 @@ def prepare_benchmark_parameters_specif_tooling(
116
134
remote_results_file ,
117
135
server_plaintext_port ,
118
136
server_private_ip ,
137
+ client_public_ip ,
138
+ username ,
139
+ private_key ,
140
+ client_ssh_port ,
119
141
):
120
142
if "redis-benchmark" in benchmark_tool :
121
143
command_arr , command_str = prepare_redis_benchmark_command (
@@ -178,13 +200,22 @@ def prepare_benchmark_parameters_specif_tooling(
178
200
remote_results_file ,
179
201
)
180
202
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
+
181
211
(command_arr , command_str ,) = prepare_ann_benchmark_command (
182
212
server_private_ip ,
183
213
server_plaintext_port ,
184
214
cluster_api_enabled ,
185
215
entry ,
186
216
remote_results_file ,
187
217
current_workdir ,
218
+ ann_path ,
188
219
)
189
220
if "ftsb_" in benchmark_tool :
190
221
input_data_file = None
0 commit comments