Liking cljdoc? Tell your friends :D

jepsen.nemesis.time

Functions for messing with time and clocks.

Functions for messing with time and clocks.
raw docstring

bump-genclj

(bump-gen test process)

Randomized clock bump generator. On random subsets of nodes, bumps the clock from -262 to +262 seconds, exponentially distributed.

Randomized clock bump generator. On random subsets of nodes, bumps the clock
from -262 to +262 seconds, exponentially distributed.
raw docstring

bump-time!clj

(bump-time! delta)

Adjusts the clock by delta milliseconds.

Adjusts the clock by delta milliseconds.
raw docstring

clock-genclj

(clock-gen)

Emits a random schedule of clock skew operations.

Emits a random schedule of clock skew operations.
raw docstring

clock-nemesisclj

(clock-nemesis)

Generates a nemesis which manipulates clocks. Accepts three types of operations:

{:f :reset, :value [node1 ...]}

{:f :strobe, :value {node1 {:delta ms, :period ms, :duration s} ...}}

{:f :bump, :value {node1 delta-ms ...}}
Generates a nemesis which manipulates clocks. Accepts three types of
operations:

    {:f :reset, :value [node1 ...]}

    {:f :strobe, :value {node1 {:delta ms, :period ms, :duration s} ...}}

    {:f :bump, :value {node1 delta-ms ...}}
raw docstring

compile!clj

(compile! reader bin)

Takes a Reader to C source code and spits out a binary to /opt/jepsen/<bin>.

Takes a Reader to C source code and spits out a binary to /opt/jepsen/<bin>.
raw docstring

compile-resource!clj

(compile-resource! resource bin)

Given a resource name, spits out a binary to /opt/jepsen/<bin>.

Given a resource name, spits out a binary to /opt/jepsen/<bin>.
raw docstring

compile-tools!clj

(compile-tools!)

install!clj

(install!)

Uploads and compiles some C programs for messing with clocks.

Uploads and compiles some C programs for messing with clocks.
raw docstring

reset-genclj

(reset-gen test process)

Randomized reset generator. Performs resets on random subsets of the tests' nodes.

Randomized reset generator. Performs resets on random subsets of the tests'
nodes.
raw docstring

reset-time!clj

(reset-time!)
(reset-time! test)

Resets the local node's clock to NTP. If a test is given, resets time on all nodes across the test.

Resets the local node's clock to NTP. If a test is given, resets time on all
nodes across the test.
raw docstring

strobe-genclj

(strobe-gen test process)

Randomized clock strobe generator. On random subsets of the test's nodes, introduces clock strobes from 4 ms to 262 seconds, with a period of 1 ms to 1 second, for a duration of 0-32 seconds.

Randomized clock strobe generator. On random subsets of the test's nodes,
introduces clock strobes from 4 ms to 262 seconds, with a period of 1 ms to
1 second, for a duration of 0-32 seconds.
raw docstring

strobe-time!clj

(strobe-time! delta period duration)

Strobes the time back and forth by delta milliseconds, every period milliseconds, for duration seconds.

Strobes the time back and forth by delta milliseconds, every period
milliseconds, for duration seconds.
raw docstring

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

× close