aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/src/jepsen/garage/reg.clj
diff options
context:
space:
mode:
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)))))})