File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 196
196
(let [p (jepsen/primary test)]
197
197
(if (= node p) true false )))
198
198
199
+ (defn is-single-mode?
200
+ [test]
201
+ (let [n (count (:nodes test))]
202
+ (cond
203
+ (= n 1 ) true
204
+ :else false )))
205
+
199
206
(defn configure!
200
207
" Configure instance"
201
208
[test node]
207
214
(c/exec :echo (-> " tarantool/jepsen.lua" io/resource slurp
208
215
(str/replace #"%TARANTOOL_REPLICATION%" (replica-set test))
209
216
(str/replace #"%TARANTOOL_IS_READ_ONLY%" (boolean-to-str read-only))
210
- (str/replace #"%TARANTOOL_SINGLE_MODE%" (boolean-to-str (: single-mode test)))
217
+ (str/replace #"%TARANTOOL_SINGLE_MODE%" (boolean-to-str (is- single-mode? test)))
211
218
(str/replace #"%TARANTOOL_DATA_ENGINE%" (:engine test)))
212
219
:> " /etc/tarantool/instances.enabled/jepsen.lua" )
213
220
(c/exec :cp " /etc/tarantool/instances.enabled/jepsen.lua" " /etc/tarantool/instances.available" )))
Original file line number Diff line number Diff line change 73
73
:parse-fn keyword
74
74
:missing (str " --workload " (cli/one-of workloads))
75
75
:validate [workloads (cli/one-of workloads)]]
76
- [nil " --single-mode"
77
- " Use a single Tarantool instance"
78
- :default false ]
79
76
[" -e" " --engine NAME"
80
77
" What Tarantool data engine should we use?"
81
78
:default " memtx" ]])
134
131
:os ubuntu/os
135
132
:db (db/db (:version opts))
136
133
:engine (:engine opts)
137
- :single-mode (:single-mode opts)
138
134
:pure-generators true
139
135
:generator gen
140
136
:checker (checker/compose {:perf (checker/perf )
You can’t perform that action at this time.
0 commit comments