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. Returns the time offset from the current local wall clock, in seconds.

Adjusts the clock by delta milliseconds. Returns the time offset from the
current local wall clock, in seconds.
raw docstring

clock-genclj

(clock-gen)

Emits a random schedule of clock skew operations. Always starts by checking the clock offsets to establish an initial bound.

Emits a random schedule of clock skew operations. Always starts by checking
the clock offsets to establish an initial bound.
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

clock-offsetclj

(clock-offset remote-time)

Takes a time in seconds since the epoch, and subtracts the local node time, to obtain a relative offset in seconds.

Takes a time in seconds since the epoch, and subtracts the local node time,
to obtain a relative offset in seconds.
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!)

current-offsetclj

(current-offset)

Returns the clock offset of this node, in seconds.

Returns the clock offset of this node, in seconds.
raw docstring

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

parse-timeclj

(parse-time s)

Parses a decimal time in unix seconds since the epoch, provided as a string, to a bigdecimal

Parses a decimal time in unix seconds since the epoch, provided as a string,
to a bigdecimal
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