redis-benchmarks-specification 0.1.264__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.

@@ -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 timestamp, value in time_series["data"].items():
499
- try:
500
- if timestamp is None:
501
- logging.warning("The provided timestamp is null. Using auto-ts")
502
- rts.ts().add(
503
- timeseries_name,
504
- value,
505
- duplicate_policy="last",
506
- )
507
- else:
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="last",
516
+ duplicate_policy="block",
513
517
  )
514
- datapoint_inserts += 1
515
- except redis.exceptions.DataError:
516
- logging.warning(
517
- "Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
518
- timestamp, value, timeseries_name
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
- datapoint_errors += 1
522
- pass
523
- except redis.exceptions.ResponseError:
524
- logging.warning(
525
- "Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
526
- timestamp, value, timeseries_name
527
- )
528
- )
529
- datapoint_errors += 1
530
- pass
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()
@@ -1296,6 +1296,7 @@ def process_self_contained_coordinator_stream(
1296
1296
  stdout=True, stderr=True
1297
1297
  )
1298
1298
  )
1299
+ redis_container.stop()
1299
1300
  redis_container.remove()
1300
1301
  except docker.errors.NotFound:
1301
1302
  logging.info(
@@ -0,0 +1,36 @@
1
+ version: 0.4
2
+ name: memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-with-expiration-240B-400_conns
3
+ description: Runs memtier_benchmark, for a keyspace of 1M keys with 400 clients doing 50% SETs and 50% GETs (mixed) with very short expiration time, in which the value has a data size of 240 Bytes.
4
+ dbconfig:
5
+ configuration-parameters:
6
+ save: '""'
7
+ preload_tool:
8
+ run_image: redislabs/memtier_benchmark:edge
9
+ tool: memtier_benchmark
10
+ arguments: '--pipeline 100 --data-size 240 --command "SET __key__ __data__ EX 5" --command-key-pattern P -c 50 -t 2 --hide-histogram --key-minimum 1'
11
+ resources:
12
+ requests:
13
+ memory: 1g
14
+ tested-commands:
15
+ - set
16
+ - get
17
+ tested-groups:
18
+ - string
19
+ redis-topologies:
20
+ - oss-standalone
21
+ - oss-standalone-02-io-threads
22
+ - oss-standalone-04-io-threads
23
+ - oss-standalone-08-io-threads
24
+ - oss-standalone-16-io-threads
25
+ build-variants:
26
+ - gcc:8.5.0-amd64-debian-buster-default
27
+ clientconfig:
28
+ run_image: redislabs/memtier_benchmark:edge
29
+ tool: memtier_benchmark
30
+ arguments: --data-size 240 --command "SET __key__ __data__ EX 5" --command "GET __key__" -c 50 -t 8 --hide-histogram --test-time 120
31
+ resources:
32
+ requests:
33
+ cpus: '8'
34
+ memory: 2g
35
+
36
+ priority: 11
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.264
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=_LJFtC5sVP7DTaLZaIzv5g7wRxPTQZRwFIYvWX4p4N8,50533
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=Nl4SmoF-qcZpjtHxU0_ifA4f-E8gRCxOoZBzl9MqY7c,78711
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
@@ -273,6 +273,7 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-incrb
273
273
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-incrbyfloat.yml,sha256=4UnmF-vx8At2ah1YjFUMHgvXFpfi4EVVXsAWjN42M78,728
274
274
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-int-encoding-strlen-pipeline-10.yml,sha256=wKXG73RiNnIGKv_YCSvJ0jnKar7YjkRpvhnIOdK62cI,1100
275
275
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-mget-1KiB.yml,sha256=s1PLNH__vexG6bE-GL_xPAqVelupxY73AWWE5siYIYE,999
276
+ redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-mixed-50-50-set-get-with-expiration-240B-400_conns.yml,sha256=34N8h1x0aaRh6HNWBo2rFaMNIjJE5_CNXmL2kuIUD8o,1206
276
277
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-set-with-ex-100B-pipeline-10.yml,sha256=bmFN61JPtQ6TWCGzUMmnhNcjgA5lMurAMlBSL9jBvX0,1035
277
278
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-setex-100B-pipeline-10.yml,sha256=W_h2zXnSXLBfgXwyY2m0RowiWJUffHNRHMbmpnp7kAo,1030
278
279
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-setrange-100B-pipeline-10.yml,sha256=cIALr7upg9-usUR1jLLYl6Ym-2LQwWWh4Ie-ilAEfxc,1059
@@ -374,8 +375,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-publi
374
375
  redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-pipeline-10.yml,sha256=rJuWWXubUeRKQ2GSfHlbPMLeOyM9Eu_MzvN2vgKcAhA,672
375
376
  redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
376
377
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=uhaSP6YUVmPvZU-qMtPPGdvNEUgUBqOfveUbeJ9WsbI,972
377
- redis_benchmarks_specification-0.1.264.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
378
- redis_benchmarks_specification-0.1.264.dist-info/METADATA,sha256=wBh9dS6IwP99SOCeypv4Bifrv7AQaKa8pob7alLcfU0,22777
379
- redis_benchmarks_specification-0.1.264.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
380
- redis_benchmarks_specification-0.1.264.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
381
- redis_benchmarks_specification-0.1.264.dist-info/RECORD,,
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,,