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.
Adjusts the clock by delta milliseconds.
(clock-gen)
Emits a random schedule of clock skew operations.
Emits a random schedule of clock skew operations.
(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 ...}}
(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!)
(install!)
Uploads and compiles some C programs for messing with clocks.
Uploads and compiles some C programs for messing with clocks.
(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