fix: compare Valkey maxmemory settings between bench labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user