redis-benchmarks-specification 0.1.265__py3-none-any.whl → 0.1.266__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.
Potentially problematic release.
This version of redis-benchmarks-specification might be problematic. Click here for more details.
- redis_benchmarks_specification/__common__/timeseries.py +35 -27
- redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py +1 -0
- {redis_benchmarks_specification-0.1.265.dist-info → redis_benchmarks_specification-0.1.266.dist-info}/METADATA +1 -1
- {redis_benchmarks_specification-0.1.265.dist-info → redis_benchmarks_specification-0.1.266.dist-info}/RECORD +7 -7
- {redis_benchmarks_specification-0.1.265.dist-info → redis_benchmarks_specification-0.1.266.dist-info}/LICENSE +0 -0
- {redis_benchmarks_specification-0.1.265.dist-info → redis_benchmarks_specification-0.1.266.dist-info}/WHEEL +0 -0
- {redis_benchmarks_specification-0.1.265.dist-info → redis_benchmarks_specification-0.1.266.dist-info}/entry_points.txt +0 -0
|
@@ -495,39 +495,47 @@ def push_data_to_redistimeseries(rts, time_series_dict: dict, expire_msecs=0):
|
|
|
495
495
|
)
|
|
496
496
|
for timeseries_name, time_series in time_series_dict.items():
|
|
497
497
|
exporter_create_ts(rts, time_series, timeseries_name)
|
|
498
|
-
for
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
498
|
+
for orig_timestamp, value in time_series["data"].items():
|
|
499
|
+
if orig_timestamp is None:
|
|
500
|
+
logging.warning("The provided timestamp is null. Using auto-ts")
|
|
501
|
+
timestamp = "*"
|
|
502
|
+
else:
|
|
503
|
+
timestamp = orig_timestamp
|
|
504
|
+
|
|
505
|
+
try_to_insert = True
|
|
506
|
+
retry_count = 0
|
|
507
|
+
while try_to_insert and retry_count < 100:
|
|
508
|
+
# (try to) insert the datapoint in given timestamp
|
|
509
|
+
try_to_insert = False
|
|
510
|
+
|
|
511
|
+
try:
|
|
508
512
|
rts.ts().add(
|
|
509
513
|
timeseries_name,
|
|
510
514
|
timestamp,
|
|
511
515
|
value,
|
|
512
|
-
duplicate_policy="
|
|
516
|
+
duplicate_policy="block",
|
|
513
517
|
)
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
518
|
+
datapoint_inserts += 1
|
|
519
|
+
except redis.exceptions.DataError:
|
|
520
|
+
logging.warning(
|
|
521
|
+
"Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
|
|
522
|
+
timestamp, value, timeseries_name
|
|
523
|
+
)
|
|
519
524
|
)
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
525
|
+
datapoint_errors += 1
|
|
526
|
+
except redis.exceptions.ResponseError as e:
|
|
527
|
+
if "DUPLICATE_POLICY" in e.__str__():
|
|
528
|
+
# duplicate timestamp: try to insert again, but in the next milisecond
|
|
529
|
+
timestamp += 1
|
|
530
|
+
try_to_insert = True
|
|
531
|
+
retry_count += 1
|
|
532
|
+
else:
|
|
533
|
+
logging.warning(
|
|
534
|
+
"Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
|
|
535
|
+
timestamp, value, timeseries_name
|
|
536
|
+
)
|
|
537
|
+
)
|
|
538
|
+
datapoint_errors += 1
|
|
531
539
|
if expire_msecs > 0:
|
|
532
540
|
rts.pexpire(timeseries_name, expire_msecs)
|
|
533
541
|
progress.update()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: redis-benchmarks-specification
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.266
|
|
4
4
|
Summary: The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute.
|
|
5
5
|
Author: filipecosta90
|
|
6
6
|
Author-email: filipecosta.90@gmail.com
|
|
@@ -17,7 +17,7 @@ redis_benchmarks_specification/__common__/github.py,sha256=9TZtnISsSgXTSAN_VQejo
|
|
|
17
17
|
redis_benchmarks_specification/__common__/package.py,sha256=4uVt1BAZ999LV2rZkq--Tk6otAVIf9YR3g3KGeUpiW4,834
|
|
18
18
|
redis_benchmarks_specification/__common__/runner.py,sha256=2IpMl0IEHi2IZvfLc4_h0e-E3ZfnlB8EkCA_SE8VDCY,7033
|
|
19
19
|
redis_benchmarks_specification/__common__/spec.py,sha256=eTF5559epBB0FrJPx-jRDQVeP_ZVOgyC7Vjxr2xk6fo,3262
|
|
20
|
-
redis_benchmarks_specification/__common__/timeseries.py,sha256=
|
|
20
|
+
redis_benchmarks_specification/__common__/timeseries.py,sha256=mwKlHP_sV5sK5mcAoHdxlzBqmW-HKWgUwSWjsEn3Tyk,51032
|
|
21
21
|
redis_benchmarks_specification/__compare__/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
22
22
|
redis_benchmarks_specification/__compare__/args.py,sha256=FlKD1wutBoKxeahpXw1gY2H_1FOPH5y-o5QsIPfFsT0,6802
|
|
23
23
|
redis_benchmarks_specification/__compare__/compare.py,sha256=O6ZuB6Ln5xkTX5jRaizpj1PTPhmoETcf-_PY-A_CGr8,57179
|
|
@@ -35,7 +35,7 @@ redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=A
|
|
|
35
35
|
redis_benchmarks_specification/__self_contained_coordinator__/post_processing.py,sha256=sVLKNnWdAqYY9DjVdqRC5tDaIrVSaI3Ca7w8-DQ-LRM,776
|
|
36
36
|
redis_benchmarks_specification/__self_contained_coordinator__/prepopulation.py,sha256=qB1rwqkROfuyFotB7MfUQiYS4Gzafd8dd2ca7lT4l2I,2909
|
|
37
37
|
redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=12VOteGiJZ_oc4CKyEWfKKSlWmZIDquGfUD57MffPuM,29396
|
|
38
|
-
redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=
|
|
38
|
+
redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=EQUdd1pWQay2UfAzVe08YzHBWmJNadthaFL4pD4c03A,78774
|
|
39
39
|
redis_benchmarks_specification/__setups__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
40
|
redis_benchmarks_specification/__setups__/topologies.py,sha256=xQ1IJkcTji_ZjLiJd3vOxZpvbNtBLZw9cPkw5hGJKHU,481
|
|
41
41
|
redis_benchmarks_specification/__spec__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
|
|
@@ -375,8 +375,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-publi
|
|
|
375
375
|
redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-pipeline-10.yml,sha256=rJuWWXubUeRKQ2GSfHlbPMLeOyM9Eu_MzvN2vgKcAhA,672
|
|
376
376
|
redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
|
|
377
377
|
redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=uhaSP6YUVmPvZU-qMtPPGdvNEUgUBqOfveUbeJ9WsbI,972
|
|
378
|
-
redis_benchmarks_specification-0.1.
|
|
379
|
-
redis_benchmarks_specification-0.1.
|
|
380
|
-
redis_benchmarks_specification-0.1.
|
|
381
|
-
redis_benchmarks_specification-0.1.
|
|
382
|
-
redis_benchmarks_specification-0.1.
|
|
378
|
+
redis_benchmarks_specification-0.1.266.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
379
|
+
redis_benchmarks_specification-0.1.266.dist-info/METADATA,sha256=6DYSub_KNVsb9ze3zj8NGcSz1NtWmas4KJkCduTeFrU,22777
|
|
380
|
+
redis_benchmarks_specification-0.1.266.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
381
|
+
redis_benchmarks_specification-0.1.266.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
|
|
382
|
+
redis_benchmarks_specification-0.1.266.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|