Controls network manipulation.
TODO: break this up into jepsen.net.proto (polymorphism) and jepsen.net (wrapper fns, default args, etc)
Controls network manipulation. TODO: break this up into jepsen.net.proto (polymorphism) and jepsen.net (wrapper fns, default args, etc)
(drop-all! test grudge)
Takes a test and a grudge: a map of nodes to collections of nodes they should drop messages from, and makes those changes to the test's network.
Takes a test and a grudge: a map of nodes to collections of nodes they should drop messages from, and makes those changes to the test's network.
Default iptables (assumes we control everything).
Default iptables (assumes we control everything).
(drop! net test src dest)
Drop traffic between nodes src and dest.
Drop traffic between nodes src and dest.
(fast! net test)
Removes packet loss and delays.
Removes packet loss and delays.
(flaky! net test)
(flaky! net test opts)
Introduces randomized packet loss with options:
:lossiness (as a percentage)
Introduces randomized packet loss with options: :lossiness (as a percentage)
(heal! net test)
End all traffic drops and restores network to fast operation.
End all traffic drops and restores network to fast operation.
(slow! net test)
(slow! net test opts)
Delays network packets with options:
:mean (in ms) :variance (in ms) :distribution (e.g. :normal)
Delays network packets with options: :mean (in ms) :variance (in ms) :distribution (e.g. :normal)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close