redis-benchmarks-specification 0.1.297__py3-none-any.whl → 0.1.299__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__/runner.py +64 -56
- redis_benchmarks_specification/__common__/timeseries.py +0 -1
- redis_benchmarks_specification/__runner__/runner.py +29 -2
- {redis_benchmarks_specification-0.1.297.dist-info → redis_benchmarks_specification-0.1.299.dist-info}/METADATA +1 -1
- {redis_benchmarks_specification-0.1.297.dist-info → redis_benchmarks_specification-0.1.299.dist-info}/RECORD +8 -8
- {redis_benchmarks_specification-0.1.297.dist-info → redis_benchmarks_specification-0.1.299.dist-info}/LICENSE +0 -0
- {redis_benchmarks_specification-0.1.297.dist-info → redis_benchmarks_specification-0.1.299.dist-info}/WHEEL +0 -0
- {redis_benchmarks_specification-0.1.297.dist-info → redis_benchmarks_specification-0.1.299.dist-info}/entry_points.txt +0 -0
|
@@ -153,6 +153,8 @@ def exporter_datasink_common(
|
|
|
153
153
|
topology_spec_name,
|
|
154
154
|
default_metrics=None,
|
|
155
155
|
git_hash=None,
|
|
156
|
+
collect_commandstats=True,
|
|
157
|
+
collect_memory_metrics=True,
|
|
156
158
|
):
|
|
157
159
|
logging.info(
|
|
158
160
|
f"Using datapoint_time_ms: {datapoint_time_ms}. git_hash={git_hash}, git_branch={git_branch}, git_version={git_version}. gh_org={tf_github_org}, gh_repo={tf_github_repo}"
|
|
@@ -181,71 +183,77 @@ def exporter_datasink_common(
|
|
|
181
183
|
None,
|
|
182
184
|
git_hash,
|
|
183
185
|
)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
186
|
+
if collect_memory_metrics:
|
|
187
|
+
logging.info("Collecting memory metrics")
|
|
188
|
+
(
|
|
189
|
+
_,
|
|
190
|
+
_,
|
|
191
|
+
overall_end_time_metrics,
|
|
192
|
+
) = collect_redis_metrics(
|
|
193
|
+
redis_conns,
|
|
194
|
+
["memory"],
|
|
195
|
+
{
|
|
196
|
+
"memory": [
|
|
197
|
+
"used_memory",
|
|
198
|
+
"used_memory_dataset",
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
)
|
|
202
|
+
print(overall_end_time_metrics)
|
|
203
|
+
# 7 days from now
|
|
204
|
+
expire_redis_metrics_ms = 7 * 24 * 60 * 60 * 1000
|
|
205
|
+
export_redis_metrics(
|
|
206
|
+
git_version,
|
|
207
|
+
datapoint_time_ms,
|
|
208
|
+
overall_end_time_metrics,
|
|
209
|
+
datasink_conn,
|
|
210
|
+
setup_name,
|
|
211
|
+
setup_type,
|
|
212
|
+
test_name,
|
|
213
|
+
git_branch,
|
|
214
|
+
tf_github_org,
|
|
215
|
+
tf_github_repo,
|
|
216
|
+
tf_triggering_env,
|
|
217
|
+
{"metric-type": "redis-memory-metrics"},
|
|
218
|
+
expire_redis_metrics_ms,
|
|
219
|
+
git_hash,
|
|
220
|
+
running_platform,
|
|
221
|
+
)
|
|
222
|
+
if collect_commandstats:
|
|
223
|
+
logging.info("Collecting commandstat metrics")
|
|
224
|
+
(
|
|
225
|
+
_,
|
|
226
|
+
_,
|
|
227
|
+
overall_commandstats_metrics,
|
|
228
|
+
) = collect_redis_metrics(redis_conns, ["commandstats"])
|
|
229
|
+
export_redis_metrics(
|
|
230
|
+
git_version,
|
|
231
|
+
datapoint_time_ms,
|
|
232
|
+
overall_commandstats_metrics,
|
|
233
|
+
datasink_conn,
|
|
234
|
+
setup_name,
|
|
235
|
+
setup_type,
|
|
236
|
+
test_name,
|
|
237
|
+
git_branch,
|
|
238
|
+
tf_github_org,
|
|
239
|
+
tf_github_repo,
|
|
240
|
+
tf_triggering_env,
|
|
241
|
+
{"metric-type": "commandstats"},
|
|
242
|
+
expire_redis_metrics_ms,
|
|
243
|
+
git_hash,
|
|
244
|
+
running_platform,
|
|
245
|
+
)
|
|
238
246
|
|
|
239
247
|
# Update deployment tracking sets
|
|
240
248
|
deployment_type_and_name = f"{setup_type}_AND_{setup_name}"
|
|
241
249
|
deployment_type_and_name_and_version = f"{setup_type}_AND_{setup_name}_AND_{git_version}"
|
|
242
250
|
|
|
243
251
|
# Add to deployment-specific set
|
|
244
|
-
deployment_set_key = f"ci.benchmarks.
|
|
252
|
+
deployment_set_key = f"ci.benchmarks.redis/{tf_triggering_env}/{deployment_type_and_name_and_version}:set"
|
|
245
253
|
datasink_conn.sadd(deployment_set_key, test_name)
|
|
246
254
|
|
|
247
255
|
# Add to testcases set
|
|
248
|
-
testcases_set_key = f"ci.benchmarks.
|
|
256
|
+
testcases_set_key = f"ci.benchmarks.redis/{tf_triggering_env}/testcases:set"
|
|
249
257
|
datasink_conn.sadd(testcases_set_key, test_name)
|
|
250
258
|
|
|
251
259
|
# Add metadata fields to timeseries metadata
|
|
@@ -28,6 +28,8 @@ from redisbench_admin.run.common import (
|
|
|
28
28
|
prepare_benchmark_parameters,
|
|
29
29
|
dbconfig_keyspacelen_check,
|
|
30
30
|
)
|
|
31
|
+
from redisbench_admin.run_remote.run_remote import export_redis_metrics
|
|
32
|
+
|
|
31
33
|
from redisbench_admin.run.metrics import extract_results_table
|
|
32
34
|
from redisbench_admin.run.run import calculate_client_tool_duration_and_check
|
|
33
35
|
from redisbench_admin.utils.benchmark_config import (
|
|
@@ -1430,7 +1432,7 @@ def process_self_contained_coordinator_stream(
|
|
|
1430
1432
|
logging.info(f"Auto-detected github_version: {git_version}")
|
|
1431
1433
|
|
|
1432
1434
|
# Auto-detect git hash if it's the default value
|
|
1433
|
-
if git_hash == "NA" and detected_info["github_hash"] != "unknown":
|
|
1435
|
+
if (git_hash is None or git_hash == "NA") and detected_info["github_hash"] != "unknown":
|
|
1434
1436
|
git_hash = detected_info["github_hash"]
|
|
1435
1437
|
logging.info(f"Auto-detected git_hash: {git_hash}")
|
|
1436
1438
|
|
|
@@ -1913,7 +1915,30 @@ def process_self_contained_coordinator_stream(
|
|
|
1913
1915
|
|
|
1914
1916
|
# Set datapoint_time_ms for memory comparison mode
|
|
1915
1917
|
datapoint_time_ms = start_time_ms
|
|
1916
|
-
|
|
1918
|
+
# 7 days from now
|
|
1919
|
+
expire_redis_metrics_ms = 7 * 24 * 60 * 60 * 1000
|
|
1920
|
+
metadata["metric-type"] = "memory-stats"
|
|
1921
|
+
|
|
1922
|
+
# Debug: Check git_hash value and memory metrics before export
|
|
1923
|
+
logging.info(f"DEBUG: About to export memory metrics with git_hash='{git_hash}', type={type(git_hash)}")
|
|
1924
|
+
logging.info(f"DEBUG: memory_metrics_dict has {len(memory_metrics_dict)} items: {list(memory_metrics_dict.keys())}")
|
|
1925
|
+
logging.info(f"DEBUG: Sample values: {dict(list(memory_metrics_dict.items())[:3])}")
|
|
1926
|
+
export_redis_metrics(
|
|
1927
|
+
git_version,
|
|
1928
|
+
datapoint_time_ms,
|
|
1929
|
+
memory_metrics_dict,
|
|
1930
|
+
datasink_conn,
|
|
1931
|
+
setup_name,
|
|
1932
|
+
setup_type,
|
|
1933
|
+
test_name,
|
|
1934
|
+
git_branch,
|
|
1935
|
+
tf_github_org,
|
|
1936
|
+
tf_github_repo,
|
|
1937
|
+
tf_triggering_env,
|
|
1938
|
+
{"metric-type": "memory-stats"},
|
|
1939
|
+
expire_redis_metrics_ms,
|
|
1940
|
+
)
|
|
1941
|
+
|
|
1917
1942
|
exporter_datasink_common(
|
|
1918
1943
|
benchmark_config,
|
|
1919
1944
|
0, # benchmark_duration_seconds = 0 for memory only
|
|
@@ -1937,6 +1962,8 @@ def process_self_contained_coordinator_stream(
|
|
|
1937
1962
|
topology_spec_name,
|
|
1938
1963
|
default_metrics,
|
|
1939
1964
|
git_hash,
|
|
1965
|
+
collect_commandstats=False,
|
|
1966
|
+
collect_memory_metrics=True,
|
|
1940
1967
|
)
|
|
1941
1968
|
|
|
1942
1969
|
# Send MEMORY PURGE after memory comparison (if FLUSHALL at test end is not enabled)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: redis-benchmarks-specification
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.299
|
|
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
|
|
@@ -15,9 +15,9 @@ redis_benchmarks_specification/__common__/builder_schema.py,sha256=kfDpRIk7NkJrb
|
|
|
15
15
|
redis_benchmarks_specification/__common__/env.py,sha256=kvJ8Ll-fvI_Tc0vynrzUEr22TqnJizzvJ4Lu9RjNr_M,3119
|
|
16
16
|
redis_benchmarks_specification/__common__/github.py,sha256=9TZtnISsSgXTSAN_VQejo5YRPDPhlU0gjxgKGPw_sP8,10699
|
|
17
17
|
redis_benchmarks_specification/__common__/package.py,sha256=4uVt1BAZ999LV2rZkq--Tk6otAVIf9YR3g3KGeUpiW4,834
|
|
18
|
-
redis_benchmarks_specification/__common__/runner.py,sha256=
|
|
18
|
+
redis_benchmarks_specification/__common__/runner.py,sha256=3eZ3GUKfWMUbvNhoryRnbennqPVRqzQ9189-B9N2YdE,8314
|
|
19
19
|
redis_benchmarks_specification/__common__/spec.py,sha256=D_SN48wg6NMthW_-OS1H5bydSDiuZpfd4WPPj7Vfwmc,5760
|
|
20
|
-
redis_benchmarks_specification/__common__/timeseries.py,sha256=
|
|
20
|
+
redis_benchmarks_specification/__common__/timeseries.py,sha256=w8XQrGPEFuuemDXXz4iny7lYsNbYH0ycQyq3jHIr80g,52916
|
|
21
21
|
redis_benchmarks_specification/__compare__/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
22
22
|
redis_benchmarks_specification/__compare__/args.py,sha256=shER83ddBRBMAlbgxGXJ5H5XziKe-sP_Nyx7t5aLOo8,7650
|
|
23
23
|
redis_benchmarks_specification/__compare__/compare.py,sha256=nymItbCO28KiAe3bVxYVObwbzpLmISAF_qyJ6b3KCPQ,62466
|
|
@@ -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=
|
|
28
|
+
redis_benchmarks_specification/__runner__/runner.py,sha256=ULuDKCiXk5BCk_I3lyDkggBNq_xmfk47n5poQCeT3yQ,137882
|
|
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
|
|
@@ -273,8 +273,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-publi
|
|
|
273
273
|
redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-pipeline-10.yml,sha256=7G_J8kUFay7jXhZvsZK5jvVHSLZvhMV0uuDMkZBbeSQ,675
|
|
274
274
|
redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
|
|
275
275
|
redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=PD7ow-k4Ll2BkhEC3aIqiaCZt8Hc4aJIp96Lw3J3mcI,791
|
|
276
|
-
redis_benchmarks_specification-0.1.
|
|
277
|
-
redis_benchmarks_specification-0.1.
|
|
278
|
-
redis_benchmarks_specification-0.1.
|
|
279
|
-
redis_benchmarks_specification-0.1.
|
|
280
|
-
redis_benchmarks_specification-0.1.
|
|
276
|
+
redis_benchmarks_specification-0.1.299.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
277
|
+
redis_benchmarks_specification-0.1.299.dist-info/METADATA,sha256=xs8UTp9pDMtka8HrMqorK1nMtwEeQxptBkB2EviqG-A,22726
|
|
278
|
+
redis_benchmarks_specification-0.1.299.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
279
|
+
redis_benchmarks_specification-0.1.299.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
|
|
280
|
+
redis_benchmarks_specification-0.1.299.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|