redis-benchmarks-specification 0.1.303__py3-none-any.whl → 0.1.305__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.

@@ -1393,17 +1393,27 @@ def process_self_contained_coordinator_stream(
1393
1393
  ssl_cert_reqs = "required"
1394
1394
  if tls_skip_verify:
1395
1395
  ssl_cert_reqs = None
1396
- r = redis.StrictRedis(
1397
- host=host,
1398
- port=port,
1399
- password=password,
1400
- ssl=tls_enabled,
1401
- ssl_cert_reqs=ssl_cert_reqs,
1402
- ssl_keyfile=tls_key,
1403
- ssl_certfile=tls_cert,
1404
- ssl_ca_certs=tls_cacert,
1405
- ssl_check_hostname=False,
1406
- )
1396
+
1397
+ # Build Redis connection parameters
1398
+ redis_params = {
1399
+ "host": host,
1400
+ "port": port,
1401
+ "password": password,
1402
+ "ssl": tls_enabled,
1403
+ "ssl_cert_reqs": ssl_cert_reqs,
1404
+ "ssl_check_hostname": False,
1405
+ }
1406
+
1407
+ # Only add SSL certificate parameters if they are provided
1408
+ if tls_enabled:
1409
+ if tls_key is not None and tls_key != "":
1410
+ redis_params["ssl_keyfile"] = tls_key
1411
+ if tls_cert is not None and tls_cert != "":
1412
+ redis_params["ssl_certfile"] = tls_cert
1413
+ if tls_cacert is not None and tls_cacert != "":
1414
+ redis_params["ssl_ca_certs"] = tls_cacert
1415
+
1416
+ r = redis.StrictRedis(**redis_params)
1407
1417
  setup_name = "oss-standalone"
1408
1418
  r.ping()
1409
1419
 
@@ -1456,17 +1466,26 @@ def process_self_contained_coordinator_stream(
1456
1466
  slot_network_info = slot[2]
1457
1467
  prefered_endpoint = slot_network_info[0]
1458
1468
  prefered_port = slot_network_info[1]
1459
- shard_conn = redis.StrictRedis(
1460
- host=prefered_endpoint,
1461
- port=prefered_port,
1462
- password=password,
1463
- ssl=tls_enabled,
1464
- ssl_cert_reqs=ssl_cert_reqs,
1465
- ssl_keyfile=tls_key,
1466
- ssl_certfile=tls_cert,
1467
- ssl_ca_certs=tls_cacert,
1468
- ssl_check_hostname=False,
1469
- )
1469
+ # Build shard connection parameters
1470
+ shard_params = {
1471
+ "host": prefered_endpoint,
1472
+ "port": prefered_port,
1473
+ "password": password,
1474
+ "ssl": tls_enabled,
1475
+ "ssl_cert_reqs": ssl_cert_reqs,
1476
+ "ssl_check_hostname": False,
1477
+ }
1478
+
1479
+ # Only add SSL certificate parameters if they are provided
1480
+ if tls_enabled:
1481
+ if tls_key is not None and tls_key != "":
1482
+ shard_params["ssl_keyfile"] = tls_key
1483
+ if tls_cert is not None and tls_cert != "":
1484
+ shard_params["ssl_certfile"] = tls_cert
1485
+ if tls_cacert is not None and tls_cacert != "":
1486
+ shard_params["ssl_ca_certs"] = tls_cacert
1487
+
1488
+ shard_conn = redis.StrictRedis(**shard_params)
1470
1489
  redis_conns.append(shard_conn)
1471
1490
  logging.info(
1472
1491
  "There are a total of {} shards".format(len(redis_conns))
@@ -1475,8 +1494,12 @@ def process_self_contained_coordinator_stream(
1475
1494
 
1476
1495
  redis_pids = []
1477
1496
  for conn in redis_conns:
1478
- redis_pid = conn.info()["process_id"]
1479
- redis_pids.append(redis_pid)
1497
+ redis_info = conn.info()
1498
+ redis_pid = redis_info.get("process_id")
1499
+ if redis_pid is not None:
1500
+ redis_pids.append(redis_pid)
1501
+ else:
1502
+ logging.warning("Redis process_id not found in INFO command, skipping PID collection for this connection")
1480
1503
 
1481
1504
  # Check if all tested commands are supported by this Redis instance
1482
1505
  supported_commands = get_supported_redis_commands(redis_conns)
@@ -310,8 +310,12 @@ def process_self_contained_coordinator_stream(
310
310
  r = redis.StrictRedis(port=redis_proc_start_port)
311
311
  r.ping()
312
312
  redis_pids = []
313
- first_redis_pid = r.info()["process_id"]
314
- redis_pids.append(first_redis_pid)
313
+ redis_info = r.info()
314
+ first_redis_pid = redis_info.get("process_id")
315
+ if first_redis_pid is not None:
316
+ redis_pids.append(first_redis_pid)
317
+ else:
318
+ logging.warning("Redis process_id not found in INFO command")
315
319
  ceil_client_cpu_limit = extract_client_cpu_limit(
316
320
  benchmark_config
317
321
  )
@@ -882,7 +882,10 @@ def process_self_contained_coordinator_stream(
882
882
  reset_commandstats(redis_conns)
883
883
  redis_pids = []
884
884
  redis_info = r.info()
885
- first_redis_pid = redis_info["process_id"]
885
+ first_redis_pid = redis_info.get("process_id")
886
+ if first_redis_pid is None:
887
+ logging.warning("Redis process_id not found in INFO command")
888
+ first_redis_pid = "unknown"
886
889
  if git_hash is None and "redis_git_sha1" in redis_info:
887
890
  git_hash = redis_info["redis_git_sha1"]
888
891
  if (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.303
3
+ Version: 0.1.305
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
@@ -25,7 +25,7 @@ redis_benchmarks_specification/__init__.py,sha256=YQIEx2sLPPA0JR9OuCuMNMNtm-f_gq
25
25
  redis_benchmarks_specification/__runner__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
26
26
  redis_benchmarks_specification/__runner__/args.py,sha256=YeN7-eOGoqCHKh5FrKz9z5Ee-Rh-3DF9tm2Hb-3m7sQ,10648
27
27
  redis_benchmarks_specification/__runner__/remote_profiling.py,sha256=JS46mFxnRB2HSU_HO90WE4w7P7usHzX1dwZg1bJpTMc,18588
28
- redis_benchmarks_specification/__runner__/runner.py,sha256=pHgPkZktwlsIrvYaGais0SAvkH5olDeTDO4R5kdxudU,137953
28
+ redis_benchmarks_specification/__runner__/runner.py,sha256=gngEouspZ2KE9ZeDwBm7y1ge4ANaqgYVeW1rHHBw0tw,139305
29
29
  redis_benchmarks_specification/__self_contained_coordinator__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
30
30
  redis_benchmarks_specification/__self_contained_coordinator__/args.py,sha256=uxBjdQ78klvsVi6lOfGYQVaWIxc8OI-DwYKY16SgvCY,5952
31
31
  redis_benchmarks_specification/__self_contained_coordinator__/artifacts.py,sha256=OVHqJzDgeSSRfUSiKp1ZTAVv14PvSbk-5yJsAAoUfpw,936
@@ -35,8 +35,8 @@ redis_benchmarks_specification/__self_contained_coordinator__/cpuset.py,sha256=s
35
35
  redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=Alf9Y1dfuOMoD4u_Dv3jTodkwZfSrlo2_YceevaWNFo,2757
36
36
  redis_benchmarks_specification/__self_contained_coordinator__/post_processing.py,sha256=sVLKNnWdAqYY9DjVdqRC5tDaIrVSaI3Ca7w8-DQ-LRM,776
37
37
  redis_benchmarks_specification/__self_contained_coordinator__/prepopulation.py,sha256=qB1rwqkROfuyFotB7MfUQiYS4Gzafd8dd2ca7lT4l2I,2909
38
- redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=12VOteGiJZ_oc4CKyEWfKKSlWmZIDquGfUD57MffPuM,29396
39
- redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=EQUdd1pWQay2UfAzVe08YzHBWmJNadthaFL4pD4c03A,78774
38
+ redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=mEEekNdzqHsR9qA8P-SOxein3x3LJDE-TGXiF-bI8oU,29644
39
+ redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=rK6MWqJQocaQffCUfpE50wDv1_iSJ6sRl74-JBSLYFM,79000
40
40
  redis_benchmarks_specification/__setups__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  redis_benchmarks_specification/__setups__/topologies.py,sha256=xQ1IJkcTji_ZjLiJd3vOxZpvbNtBLZw9cPkw5hGJKHU,481
42
42
  redis_benchmarks_specification/__spec__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
@@ -274,8 +274,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-
274
274
  redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-storage.yml,sha256=Q5JKvADD1R71hyRx4Qsz5dxHHlYICHqWHD7XTAmX72M,6936
275
275
  redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
276
276
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=PD7ow-k4Ll2BkhEC3aIqiaCZt8Hc4aJIp96Lw3J3mcI,791
277
- redis_benchmarks_specification-0.1.303.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
278
- redis_benchmarks_specification-0.1.303.dist-info/METADATA,sha256=EhMb2tY2pNg3PZtPh8R40wztMm6GVTR48j5P_fP04nw,22726
279
- redis_benchmarks_specification-0.1.303.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
280
- redis_benchmarks_specification-0.1.303.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
281
- redis_benchmarks_specification-0.1.303.dist-info/RECORD,,
277
+ redis_benchmarks_specification-0.1.305.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
278
+ redis_benchmarks_specification-0.1.305.dist-info/METADATA,sha256=J8M59TdK6P_wSg3zfrl25lMuxrnOYjzFF8WHqMyd8BU,22726
279
+ redis_benchmarks_specification-0.1.305.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
280
+ redis_benchmarks_specification-0.1.305.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
281
+ redis_benchmarks_specification-0.1.305.dist-info/RECORD,,