redisbench-admin 0.11.30__py3-none-any.whl → 0.11.32__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.
@@ -276,6 +276,7 @@ def run_remote_command_logic(args, project_name, project_version):
276
276
  host=args.redistimeseries_host,
277
277
  port=args.redistimeseries_port,
278
278
  password=args.redistimeseries_pass,
279
+ retry_on_timeout=True,
279
280
  )
280
281
  rts.ping()
281
282
 
@@ -628,42 +628,50 @@ def push_data_to_redistimeseries(rts, time_series_dict: dict, expire_msecs=0):
628
628
  unit="benchmark time-series", total=len(time_series_dict.values())
629
629
  )
630
630
  for timeseries_name, time_series in time_series_dict.items():
631
- exporter_create_ts(rts, time_series, timeseries_name)
632
- for timestamp, value in time_series["data"].items():
633
- try:
634
- if timestamp is None:
635
- logging.warning("The provided timestamp is null. Using auto-ts")
636
- rts.ts().add(
637
- timeseries_name,
638
- value,
639
- duplicate_policy="last",
640
- )
641
- else:
642
- rts.ts().add(
643
- timeseries_name,
644
- timestamp,
645
- value,
646
- duplicate_policy="last",
631
+ try:
632
+ exporter_create_ts(rts, time_series, timeseries_name)
633
+ for timestamp, value in time_series["data"].items():
634
+ try:
635
+ if timestamp is None:
636
+ logging.warning(
637
+ "The provided timestamp is null. Using auto-ts"
638
+ )
639
+ rts.ts().add(
640
+ timeseries_name,
641
+ value,
642
+ duplicate_policy="last",
643
+ )
644
+ else:
645
+ rts.ts().add(
646
+ timeseries_name,
647
+ timestamp,
648
+ value,
649
+ duplicate_policy="last",
650
+ )
651
+ datapoint_inserts += 1
652
+ except redis.exceptions.DataError:
653
+ logging.warning(
654
+ "Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
655
+ timestamp, value, timeseries_name
656
+ )
647
657
  )
648
- datapoint_inserts += 1
649
- except redis.exceptions.DataError:
650
- logging.warning(
651
- "Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
652
- timestamp, value, timeseries_name
653
- )
654
- )
655
- datapoint_errors += 1
656
- pass
657
- except redis.exceptions.ResponseError:
658
- logging.warning(
659
- "Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
660
- timestamp, value, timeseries_name
658
+ datapoint_errors += 1
659
+ pass
660
+ except redis.exceptions.ResponseError:
661
+ logging.warning(
662
+ "Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
663
+ timestamp, value, timeseries_name
664
+ )
661
665
  )
662
- )
663
- datapoint_errors += 1
664
- pass
665
- if expire_msecs > 0:
666
- rts.pexpire(timeseries_name, expire_msecs)
666
+ datapoint_errors += 1
667
+ pass
668
+ if expire_msecs > 0:
669
+ rts.pexpire(timeseries_name, expire_msecs)
670
+ except redis.exceptions.TimeoutError:
671
+ logging.error(
672
+ f"Error while working in timeseries named {timeseries_name}. "
673
+ )
674
+ datapoint_errors += 1
667
675
  progress.update()
668
676
  return datapoint_errors, datapoint_inserts
669
677
 
@@ -153,6 +153,7 @@ def watchdog_command_logic(args, project_name, project_version):
153
153
  host=args.redistimeseries_host,
154
154
  port=args.redistimeseries_port,
155
155
  password=args.redistimeseries_pass,
156
+ retry_on_timeout=True,
156
157
  )
157
158
  rts.ping()
158
159
  ec2_client = boto3.client("ec2")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redisbench-admin
3
- Version: 0.11.30
3
+ Version: 0.11.32
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
  Author: filipecosta90
6
6
  Author-email: filipecosta.90@gmail.com
@@ -220,7 +220,7 @@ redisbench_admin/run_remote/remote_db.py,sha256=GTBBo2G0Iu_9Zlw8Ws7WK8JJgNLJaGtS
220
220
  redisbench_admin/run_remote/remote_env.py,sha256=Ux_0QT1unNRlKl3cakzjG5Px1uuxOOfBoF_pnalx_T8,4936
221
221
  redisbench_admin/run_remote/remote_failures.py,sha256=IOo6DyxarcwwMPCeN4gWB2JrhuC9iBLwq0nCROqr5ak,1567
222
222
  redisbench_admin/run_remote/remote_helpers.py,sha256=ngNjPJP0EwANJFhOFmujF0eSE5Ga3O0WcVuDda9cS9E,9917
223
- redisbench_admin/run_remote/run_remote.py,sha256=E42msGhMVnKmnMz0Kp7br1nuUaMCipC2bN0PzLxkbsw,67981
223
+ redisbench_admin/run_remote/run_remote.py,sha256=gEWHIXyqAZmi-iAOd76uPNMLJzlVZ87AtXXdrrPQUAg,68016
224
224
  redisbench_admin/run_remote/standalone.py,sha256=tbnKFs6wxmkRkDuxP3A420PPdb8YSmPymDlnoL2GeOQ,6745
225
225
  redisbench_admin/run_remote/terraform.py,sha256=vV3eWXNwj7vsnFNqUgCir5ueZS4VYopEyzWiTtoSq0Q,4018
226
226
  redisbench_admin/utils/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
@@ -228,15 +228,15 @@ redisbench_admin/utils/benchmark_config.py,sha256=bC2C6rnj89wkkSlOXyyfe0N15unn_M
228
228
  redisbench_admin/utils/local.py,sha256=zUvyVI9LZMT3qyxs1pO3mXL6Bt_1z9EZUGppaRcWNRA,3890
229
229
  redisbench_admin/utils/redisearch.py,sha256=lchUEzpt0zB1rHwlDlw9LLifAnxFWcLP-PePw7TjL-0,1602
230
230
  redisbench_admin/utils/redisgraph_benchmark_go.py,sha256=os7EJt6kBxsFJLKkSoANbjMT7-cEq4-Ns-49alk2Tf8,2048
231
- redisbench_admin/utils/remote.py,sha256=McW1vI-QTrzjODbt0LdjgYUDUNILUVGfgjtSoZ8ileI,40251
231
+ redisbench_admin/utils/remote.py,sha256=xQuTbfEMNpHW38njaiuw2j1P4BPYsv-uCzfIVsKot0Q,40694
232
232
  redisbench_admin/utils/results.py,sha256=uKk3uNJ--bSXlUj_HGQ2OaV6MVqmXJVM8xTzFV6EOw4,3267
233
233
  redisbench_admin/utils/ssh.py,sha256=QW4AwlocMHJt05QMdN_4f8WeDmxiEwR80ny8VBThq6k,6533
234
234
  redisbench_admin/utils/utils.py,sha256=YxuSPS6dtBw7T8e09678rUNNiCSkuFtVXNc05-qytbI,14370
235
235
  redisbench_admin/watchdog/__init__.py,sha256=cD7zfXt0VEmy0b7452HvcAxX_9kVj6Vm213yNdUHP20,95
236
236
  redisbench_admin/watchdog/args.py,sha256=nKsG1G6ATOZlAMHMtT9u3kXxduKCbejSZ5x8oB_ynZ8,1312
237
- redisbench_admin/watchdog/watchdog.py,sha256=jFGtm5ktjKuXKWvH7lnmf3pp-ch1WBJUOomXILJMDAg,6158
238
- redisbench_admin-0.11.30.dist-info/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
239
- redisbench_admin-0.11.30.dist-info/METADATA,sha256=SuoOct7LqePq2d-g4QrQZGYSaMkS4MRTn0DfutPoutc,5389
240
- redisbench_admin-0.11.30.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
241
- redisbench_admin-0.11.30.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
242
- redisbench_admin-0.11.30.dist-info/RECORD,,
237
+ redisbench_admin/watchdog/watchdog.py,sha256=0wWYge3x_OMxWrzazNhJif2NK4tKsI963HVZqjczRag,6189
238
+ redisbench_admin-0.11.32.dist-info/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
239
+ redisbench_admin-0.11.32.dist-info/METADATA,sha256=kCnWwd6LqhyxqmS1Q4SX9Ji6ES8e-ioS7H-MyJo5JSQ,5389
240
+ redisbench_admin-0.11.32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
241
+ redisbench_admin-0.11.32.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
242
+ redisbench_admin-0.11.32.dist-info/RECORD,,