Allows Jepsen to set up and tear down databases.
Allows Jepsen to set up and tear down databases.
(cycle! test)
Takes a test, and tears down, then sets up, the database on all nodes concurrently.
If any call to setup! or setup-primary! throws :type ::setup-failed, we tear
down and retry the whole process up to cycle-tries
times.
Takes a test, and tears down, then sets up, the database on all nodes concurrently. If any call to setup! or setup-primary! throws :type ::setup-failed, we tear down and retry the whole process up to `cycle-tries` times.
How many tries do we get to set up a database?
How many tries do we get to set up a database?
(setup! db test node)
Set up the database on this particular node.
Set up the database on this particular node.
(teardown! db test node)
Tear down the database on this particular node.
Tear down the database on this particular node.
(log-files db test node)
Returns a sequence of log files for this node.
Returns a sequence of log files for this node.
This optional protocol supports pausing and resuming a DB's processes.
This optional protocol supports pausing and resuming a DB's processes.
(pause! db test node)
Pauses the process
Pauses the process
(resume! db test node)
Resumes the process
Resumes the process
This optional protocol supports databases which have a notion of one (or more) primary nodes.
This optional protocol supports databases which have a notion of one (or more) primary nodes.
(primaries db test)
Returns a collection of nodes which are currently primaries. Best-effort is OK; in practice, this usually devolves to 'nodes that think they're currently primaries'.
Returns a collection of nodes which are currently primaries. Best-effort is OK; in practice, this usually devolves to 'nodes that think they're currently primaries'.
(setup-primary! db test node)
Performs one-time setup on a single node.
Performs one-time setup on a single node.
This optional protocol supports starting and killing a DB's processes.
This optional protocol supports starting and killing a DB's processes.
(kill! db test node)
Forcibly kills the process
Forcibly kills the process
(start! db test node)
Starts the process
Starts the process
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close