From 7011ec431f021a0e1800ad37e738dd43af0b54a6 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 27 Sep 2022 11:49:44 +0200 Subject: Add sled no-sync --- scenarios/fragments/garage.py | 2 +- scenarios/garage-warp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'scenarios') diff --git a/scenarios/fragments/garage.py b/scenarios/fragments/garage.py index 34aae30..739f982 100644 --- a/scenarios/fragments/garage.py +++ b/scenarios/fragments/garage.py @@ -59,7 +59,7 @@ def deploy_follow(uroot={}, us3_api={}, us3_web={}, uadmin={}): sync_on_key_up() shared.log("ready") -def to_toml(d): return "\n".join([ f"{k} = \"{v}\"" for k, v in d.items() ]) +def to_toml(d): return "\n".join([ f"{k} = {v}" if type(v) is int else f"{k} = \"{v}\"" for k, v in d.items() ]) def daemon(uroot={}, us3_api={}, us3_web={}, uadmin={}): root = { "metadata_dir": f"{storage_path}/meta", diff --git a/scenarios/garage-warp b/scenarios/garage-warp index 8994e87..c102359 100755 --- a/scenarios/garage-warp +++ b/scenarios/garage-warp @@ -11,6 +11,8 @@ for fl in sys.argv[1:]: warp.bench = flavor.warp[fl] elif fl in db_engines: conf_root['db_engine'] = fl + elif 'sled_no_fsync' == fl: + conf_root['sled_flush_every_ms'] = 1000 * 60 * 10 # 10 minutes if shared.id() == 1: garage.deploy_coord(uroot=conf_root) -- cgit v1.2.3