aboutsummaryrefslogtreecommitdiff
path: root/scenarios/fragments
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-09-23 23:20:10 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-09-23 23:20:10 +0200
commit0dc16e5e8071adb7599c7b2fd357206e50d35cde (patch)
treeb3aef3e4144e9296c6cfcd4a18e899be329fc38d /scenarios/fragments
parent60df0fb95dbf70acfbb0ca2db1336d0e00efed27 (diff)
downloadmknet-0dc16e5e8071adb7599c7b2fd357206e50d35cde.tar.gz
mknet-0dc16e5e8071adb7599c7b2fd357206e50d35cde.zip
Support minio warp
Diffstat (limited to 'scenarios/fragments')
-rw-r--r--scenarios/fragments/warp.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/scenarios/fragments/warp.py b/scenarios/fragments/warp.py
index 0c5acc8..553645d 100644
--- a/scenarios/fragments/warp.py
+++ b/scenarios/fragments/warp.py
@@ -1,12 +1,17 @@
import os
from os.path import exists
from pathlib import Path
-from fragments import shared, garage, flavor
+from fragments import shared, garage, flavor, minio
warp_bin = Path(os.path.dirname(__file__)) / "../../benchmarks/warp/warp"
bench = flavor.warp["warp-fast"]
-def on_garage(params="mixed"):
+def common(port, ak, sk):
+ out = Path(shared.storage_path) / "warp.csv"
shared.log(f"launching warp {warp_bin}")
- shared.exec(f"{warp_bin} {params} --host={os.environ['IP']}:3900 --access-key={garage.key.access_key_id} --secret-key={garage.key.secret_access_key}")
+ shared.exec(f"{warp_bin} {bench} --host=[{os.environ['IP']}]:{port} --analyze.out={out} --access-key={ak} --secret-key={sk}")
shared.log(f"execution done")
+
+def on_garage(): common(3900, garage.key.access_key_id, garage.key.secret_access_key)
+def on_minio(): common(9000, minio.access_key, minio.secret_key)
+