fix: compare Valkey maxmemory settings between bench labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 04:04:15 +03:00
co-authored by Claude Opus 5.5
parent 5a68f8e592
commit 23ceedb954
4 changed files with 11 additions and 5 deletions
+5 -1
View File
@@ -108,7 +108,8 @@ def methodology(label: Label) -> dict[str, Any]:
Профиль, лимиты всех контейнеров стенда, образ генератора, образы и
настройки PostgreSQL и Valkey, окружение приложения (решение 8 design
change `bench-postgres`).
change `bench-postgres`). У Valkey настройки — `maxmemory*` из
`valkey.conf`: правку конфигурации образ не покажет.
"""
meta = label.meta
stand = meta.get("stand", {})
@@ -127,6 +128,9 @@ def methodology(label: Label) -> dict[str, Any]:
stand.get("postgres", {}).get("settings", {}),
flat,
)
for key, value in stand.get("valkey", {}).items():
if key.startswith("maxmemory"):
flat[f"stand.valkey.{key}"] = value
flatten("stand.app_env", stand.get("app_env", {}), flat)
return flat