redisbench-admin 0.11.56__py3-none-any.whl → 0.11.57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,8 +205,7 @@ def remote_tool_pre_bench_step(
205
205
  )
206
206
  logging.info("Finished up remote tool {} requirements".format(benchmark_tool))
207
207
 
208
-
209
- def setup_remote_benchmark_tool_requirements_ftsb(
208
+ def _setup_remote_benchmark_tool_requirements(
210
209
  client_public_ip,
211
210
  username,
212
211
  private_key,
@@ -218,14 +217,43 @@ def setup_remote_benchmark_tool_requirements_ftsb(
218
217
  ):
219
218
  commands = [
220
219
  "wget {} -q -O {}".format(tool_link, remote_tool_link),
221
- "wget {} -q -O {}".format(queries_file_link, remote_input_file),
222
- "chmod 755 {}".format(remote_tool_link),
220
+ "chmod 755 {}".format(remote_tool_link)
223
221
  ]
222
+
223
+ # detect if queries_file_link is a s3 URI or http one and act accordingly (use aws cli or wget)
224
+ if queries_file_link.startswith("s3://"):
225
+ commands.append(
226
+ "aws s3 cp {} {} --no-sign-request".format(queries_file_link, remote_input_file)
227
+ )
228
+ else:
229
+ commands.append("wget {} -q -O {}".format(queries_file_link, remote_input_file))
224
230
  execute_remote_commands(
225
231
  client_public_ip, username, private_key, commands, client_ssh_port
226
232
  )
227
233
 
228
234
 
235
+ def setup_remote_benchmark_tool_requirements_ftsb(
236
+ client_public_ip,
237
+ username,
238
+ private_key,
239
+ tool_link,
240
+ queries_file_link,
241
+ remote_tool_link,
242
+ remote_input_file,
243
+ client_ssh_port,
244
+ ):
245
+ _setup_remote_benchmark_tool_requirements(
246
+ client_public_ip,
247
+ username,
248
+ private_key,
249
+ tool_link,
250
+ queries_file_link,
251
+ remote_tool_link,
252
+ remote_input_file,
253
+ client_ssh_port,
254
+ )
255
+
256
+
229
257
  def setup_remote_benchmark_tool_requirements_tsbs(
230
258
  client_public_ip,
231
259
  username,
@@ -236,13 +264,15 @@ def setup_remote_benchmark_tool_requirements_tsbs(
236
264
  remote_input_file,
237
265
  client_ssh_port,
238
266
  ):
239
- commands = [
240
- "wget {} -q -O {}".format(tool_link, remote_tool_link),
241
- "wget {} -q -O {}".format(queries_file_link, remote_input_file),
242
- "chmod 755 {}".format(remote_tool_link),
243
- ]
244
- execute_remote_commands(
245
- client_public_ip, username, private_key, commands, client_ssh_port
267
+ _setup_remote_benchmark_tool_requirements(
268
+ client_public_ip,
269
+ username,
270
+ private_key,
271
+ tool_link,
272
+ queries_file_link,
273
+ remote_tool_link,
274
+ remote_input_file,
275
+ client_ssh_port,
246
276
  )
247
277
 
248
278
 
@@ -178,6 +178,8 @@ def connect_remote_ssh(port, private_key, server_public_ip, username):
178
178
  c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
179
179
  logging.info("Connecting to remote server {}".format(server_public_ip))
180
180
  c.connect(hostname=server_public_ip, port=port, username=username, pkey=k)
181
+ transport = c.get_transport()
182
+ transport.set_keepalive(10) # Send keepalive every 10 seconds
181
183
  logging.info("Connected to remote server {}".format(server_public_ip))
182
184
  return c
183
185
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: redisbench-admin
3
- Version: 0.11.56
3
+ Version: 0.11.57
4
4
  Summary: Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... ).
5
5
  License-File: LICENSE
6
6
  Author: filipecosta90
@@ -94,7 +94,7 @@ redisbench_admin/run_remote/remote_client.py,sha256=rRmDro1weto01wzqYpId8NMPoizE
94
94
  redisbench_admin/run_remote/remote_db.py,sha256=EEDeiOZk-godr5EINscEkOJLGWUN3gFfH6RaBzAKbak,14566
95
95
  redisbench_admin/run_remote/remote_env.py,sha256=Ux_0QT1unNRlKl3cakzjG5Px1uuxOOfBoF_pnalx_T8,4936
96
96
  redisbench_admin/run_remote/remote_failures.py,sha256=IOo6DyxarcwwMPCeN4gWB2JrhuC9iBLwq0nCROqr5ak,1567
97
- redisbench_admin/run_remote/remote_helpers.py,sha256=skWeGyDJBmyx_UwUekT3N3_nOJvF2-Hvu-E7vKlO9gg,10598
97
+ redisbench_admin/run_remote/remote_helpers.py,sha256=OEFjbdqG_FJ5KY6B63jYr21vPomtM3ld_F9MsGRTaCU,11271
98
98
  redisbench_admin/run_remote/run_remote.py,sha256=tZqCu1fTfB5gWooVIEsSDoaVfnVRfxeCpn-RLmYI3IM,75476
99
99
  redisbench_admin/run_remote/standalone.py,sha256=WRgiY8oMJwDUPht1LAPG9tnOLvhJmhRvVOi3GBnMoX4,27952
100
100
  redisbench_admin/run_remote/terraform.py,sha256=vV3eWXNwj7vsnFNqUgCir5ueZS4VYopEyzWiTtoSq0Q,4018
@@ -103,15 +103,15 @@ redisbench_admin/utils/benchmark_config.py,sha256=bC2C6rnj89wkkSlOXyyfe0N15unn_M
103
103
  redisbench_admin/utils/local.py,sha256=zUvyVI9LZMT3qyxs1pO3mXL6Bt_1z9EZUGppaRcWNRA,3890
104
104
  redisbench_admin/utils/redisearch.py,sha256=lchUEzpt0zB1rHwlDlw9LLifAnxFWcLP-PePw7TjL-0,1602
105
105
  redisbench_admin/utils/redisgraph_benchmark_go.py,sha256=os7EJt6kBxsFJLKkSoANbjMT7-cEq4-Ns-49alk2Tf8,2048
106
- redisbench_admin/utils/remote.py,sha256=RAQ2VxfmlK7swN7ujCuwSI2soGSycjnxbQw_IrLxIFE,42205
106
+ redisbench_admin/utils/remote.py,sha256=MsRL6x-eekzJOVE6Ho05igZzUX54m-4fRVCQlSYxyw0,42306
107
107
  redisbench_admin/utils/results.py,sha256=uKk3uNJ--bSXlUj_HGQ2OaV6MVqmXJVM8xTzFV6EOw4,3267
108
108
  redisbench_admin/utils/ssh.py,sha256=QW4AwlocMHJt05QMdN_4f8WeDmxiEwR80ny8VBThq6k,6533
109
109
  redisbench_admin/utils/utils.py,sha256=XVSvo1_DdcYwk2jOxL3VPVPbnDnhGYt8ieYfANo6rTo,15085
110
110
  redisbench_admin/watchdog/__init__.py,sha256=cD7zfXt0VEmy0b7452HvcAxX_9kVj6Vm213yNdUHP20,95
111
111
  redisbench_admin/watchdog/args.py,sha256=nKsG1G6ATOZlAMHMtT9u3kXxduKCbejSZ5x8oB_ynZ8,1312
112
112
  redisbench_admin/watchdog/watchdog.py,sha256=0wWYge3x_OMxWrzazNhJif2NK4tKsI963HVZqjczRag,6189
113
- redisbench_admin-0.11.56.dist-info/METADATA,sha256=wxAuRSDGZqqFHiamBoQhtv8Zh3sX3yHa1XzCdEACoSo,5724
114
- redisbench_admin-0.11.56.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
115
- redisbench_admin-0.11.56.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
116
- redisbench_admin-0.11.56.dist-info/licenses/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
117
- redisbench_admin-0.11.56.dist-info/RECORD,,
113
+ redisbench_admin-0.11.57.dist-info/METADATA,sha256=2T9Tvwug0CQlh1ueoikzvMk4sBlqjL2JP9argPeR25A,5724
114
+ redisbench_admin-0.11.57.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
115
+ redisbench_admin-0.11.57.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
116
+ redisbench_admin-0.11.57.dist-info/licenses/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
117
+ redisbench_admin-0.11.57.dist-info/RECORD,,