aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/src/jepsen/garage/reg.clj
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-04-19 15:27:26 +0200
committerAlex Auvolat <alex@adnab.me>2023-10-18 12:03:11 +0200
commit6eb26be548c08707b59473e6086f3f5eee89fe47 (patch)
treec1a62dca0702e95c7d47df35420c640619c21883 /script/jepsen.garage/src/jepsen/garage/reg.clj
parenteb86eaa6d2702ad5171c4fdfcbceb3dfba21833c (diff)
downloadgarage-6eb26be548c08707b59473e6086f3f5eee89fe47.tar.gz
garage-6eb26be548c08707b59473e6086f3f5eee89fe47.zip
Add garage set test (this one works :p)
Diffstat (limited to 'script/jepsen.garage/src/jepsen/garage/reg.clj')
-rw-r--r--script/jepsen.garage/src/jepsen/garage/reg.clj21
1 files changed, 7 insertions, 14 deletions
diff --git a/script/jepsen.garage/src/jepsen/garage/reg.clj b/script/jepsen.garage/src/jepsen/garage/reg.clj
index 557b4a99..0b370b36 100644
--- a/script/jepsen.garage/src/jepsen/garage/reg.clj
+++ b/script/jepsen.garage/src/jepsen/garage/reg.clj
@@ -51,19 +51,12 @@
{:model (model/register)
:algorithm :linear})
:timeline (timeline/html)}))
- :generator (->> (independent/concurrent-generator
- 10
- (range)
- (fn [k]
- (->>
- (gen/mix [op-get op-put op-del])
- (gen/stagger (/ (:rate opts)))
- (gen/limit (:ops-per-key opts)))))
- (gen/nemesis
- (cycle [(gen/sleep 5)
- {:type :info, :f :start}
- (gen/sleep 5)
- {:type :info, :f :stop}]))
- (gen/time-limit (:time-limit opts)))})
+ :generator (independent/concurrent-generator
+ 10
+ (range)
+ (fn [k]
+ (->>
+ (gen/mix [op-get op-put op-del])
+ (gen/limit (:ops-per-key opts)))))})