Liking cljdoc? Tell your friends :D

jepsen.db

Allows Jepsen to set up and tear down databases.

Allows Jepsen to set up and tear down databases.
raw docstring

cycle!clj

(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.
raw docstring

cycle-triesclj

How many tries do we get to set up a database?

How many tries do we get to set up a database?
raw docstring

DBcljprotocol

setup!clj

(setup! db test node)

Set up the database on this particular node.

Set up the database on this particular node.

teardown!clj

(teardown! db test node)

Tear down the database on this particular node.

Tear down the database on this particular node.

LogFilescljprotocol

log-filesclj

(log-files db test node)

Returns a sequence of log files for this node.

Returns a sequence of log files for this node.

noopclj

Does nothing.

Does nothing.
raw docstring

Pausecljprotocol

This optional protocol supports pausing and resuming a DB's processes.

This optional protocol supports pausing and resuming a DB's processes.

pause!clj

(pause! db test node)

Pauses the process

Pauses the process

resume!clj

(resume! db test node)

Resumes the process

Resumes the process
raw docstring

Primarycljprotocol

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.

primariesclj

(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!clj

(setup-primary! db test node)

Performs one-time setup on a single node.

Performs one-time setup on a single node.
raw docstring

Processcljprotocol

This optional protocol supports starting and killing a DB's processes.

This optional protocol supports starting and killing a DB's processes.

kill!clj

(kill! db test node)

Forcibly kills the process

Forcibly kills the process

start!clj

(start! db test node)

Starts the process

Starts the process
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close