Functions for messing with time and clocks.
Functions for messing with time and clocks.
(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.
(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.
(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.
(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 ...}}
(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.
(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>.
(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>.
(compile-tools!)
(current-offset)
Returns the clock offset of this node, in seconds.
Returns the clock offset of this node, in seconds.
(install!)
Uploads and compiles some C programs for messing with clocks.
Uploads and compiles some C programs for messing with clocks.
(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
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close