aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/src/jepsen/garage.clj
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-10-18 17:51:34 +0200
committerAlex Auvolat <alex@adnab.me>2023-10-18 17:51:34 +0200
commitb3bf16ee27b061a3a091022e718b2994365f945c (patch)
treea628a6a1628ae8847093cadb95b5cc97940477b7 /script/jepsen.garage/src/jepsen/garage.clj
parentddd3de7fcef2a2e05805766085c156d7fde9e12e (diff)
downloadgarage-b3bf16ee27b061a3a091022e718b2994365f945c.tar.gz
garage-b3bf16ee27b061a3a091022e718b2994365f945c.zip
make jepsen test more robust: handle errors and timeouts, fixed access key
Diffstat (limited to 'script/jepsen.garage/src/jepsen/garage.clj')
-rw-r--r--script/jepsen.garage/src/jepsen/garage.clj17
1 files changed, 12 insertions, 5 deletions
diff --git a/script/jepsen.garage/src/jepsen/garage.clj b/script/jepsen.garage/src/jepsen/garage.clj
index 5816512b..891fdf12 100644
--- a/script/jepsen.garage/src/jepsen/garage.clj
+++ b/script/jepsen.garage/src/jepsen/garage.clj
@@ -41,7 +41,7 @@
[opts]
(let [workload ((get workloads (:workload opts)) opts)
garage-version (if (:increasing-timestamps opts)
- "03490d41d58576d7b3bcf977b2726d72a3a66ada"
+ "d146cdd5b66ca1d3ed65ce93ca42c6db22defc09"
"v0.9.0")]
(merge tests/noop-test
opts
@@ -56,16 +56,23 @@
(gen/stagger (/ (:rate opts)))
(gen/nemesis
(cycle [(gen/sleep 5)
- {:type :info, :f :start}
+ ;{:type :info, :f :partition-start}
+ ;(gen/sleep 5)
+ {:type :info, :f :clock-scramble}
(gen/sleep 5)
- {:type :info, :f :stop}]))
+ ;{:type :info, :f :partition-stop}
+ ;(gen/sleep 5)
+ {:type :info, :f :clock-scramble}]))
(gen/time-limit (:time-limit opts)))
(gen/log "Healing cluster")
- (gen/nemesis (gen/once {:type :info, :f :stop}))
+ (gen/nemesis (gen/once {:type :info, :f :partition-stop}))
(gen/log "Waiting for recovery")
(gen/sleep 10)
(gen/clients (:final-generator workload)))
- :nemesis (nemesis/partition-random-halves)
+ :nemesis (nemesis/compose
+ {{:partition-start :start
+ :partition-stop :stop} (nemesis/partition-random-halves)
+ {:clock-scramble :scramble} (nemesis/clock-scrambler 20.0)})
:checker (checker/compose
{:perf (checker/perf)
:workload (:checker workload)})