jepsen: code path for nemesis final generator
This commit is contained in:
parent
654775308e
commit
9030c1eef8
2 changed files with 24 additions and 22 deletions
|
@ -73,7 +73,7 @@
|
||||||
(gen/nemesis (:generator scenario))
|
(gen/nemesis (:generator scenario))
|
||||||
(gen/time-limit (:time-limit opts)))
|
(gen/time-limit (:time-limit opts)))
|
||||||
(gen/log "Healing cluster")
|
(gen/log "Healing cluster")
|
||||||
(gen/nemesis (gen/once {:type :info, :f :partition-stop}))
|
(gen/nemesis (:final-generator scenario))
|
||||||
(gen/log "Waiting for recovery")
|
(gen/log "Waiting for recovery")
|
||||||
(gen/sleep 10)
|
(gen/sleep 10)
|
||||||
(gen/clients (:final-generator workload)))
|
(gen/clients (:final-generator workload)))
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
{:type :info, :f :partition-stop}
|
{:type :info, :f :partition-stop}
|
||||||
(gen/sleep 5)
|
(gen/sleep 5)
|
||||||
{:type :info, :f :clock-scramble}])
|
{:type :info, :f :clock-scramble}])
|
||||||
|
:final-generator (gen/once {:type :info, :f :partition-stop})
|
||||||
:nemesis (nemesis/compose
|
:nemesis (nemesis/compose
|
||||||
{{:partition-start :start
|
{{:partition-start :start
|
||||||
:partition-stop :stop} (nemesis/partition-random-halves)
|
:partition-stop :stop} (nemesis/partition-random-halves)
|
||||||
|
@ -86,6 +87,7 @@
|
||||||
{:type :info, :f :reconfigure-start}
|
{:type :info, :f :reconfigure-start}
|
||||||
(gen/sleep 5)
|
(gen/sleep 5)
|
||||||
{:type :info, :f :reconfigure-stop}])
|
{:type :info, :f :reconfigure-stop}])
|
||||||
|
:final-generator (gen/once {:type :info, :f :reconfigure-stop})
|
||||||
:nemesis (nemesis/compose
|
:nemesis (nemesis/compose
|
||||||
{{:reconfigure-start :start
|
{{:reconfigure-start :start
|
||||||
:reconfigure-stop :stop} (reconfigure-subset 3)})})
|
:reconfigure-stop :stop} (reconfigure-subset 3)})})
|
||||||
|
|
Loading…
Reference in a new issue