aboutsummaryrefslogtreecommitdiff
path: root/scenarios
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-09-27 11:49:44 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-09-27 11:50:08 +0200
commit7011ec431f021a0e1800ad37e738dd43af0b54a6 (patch)
treed1f7232eb4c90cbea17cacc86bdd32f9dd0ebbc3 /scenarios
parentc78e4f8005b8dc221190b1da736984f289225326 (diff)
downloadmknet-7011ec431f021a0e1800ad37e738dd43af0b54a6.tar.gz
mknet-7011ec431f021a0e1800ad37e738dd43af0b54a6.zip
Add sled no-sync
Diffstat (limited to 'scenarios')
-rw-r--r--scenarios/fragments/garage.py2
-rwxr-xr-xscenarios/garage-warp2
2 files changed, 3 insertions, 1 deletions
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)