An open API service indexing awesome lists of open source software.

https://github.com/wesleyac/raft

A Raft implementation in python
https://github.com/wesleyac/raft

Last synced: about 1 year ago
JSON representation

A Raft implementation in python

Awesome Lists containing this project

README

          

How to install requirements:

~~~
pip install -r requirements
~~~

How to run tests:

~~~
pytest src/world_broker.py
~~~

How tests work:

* calls `__init__`, which initializes the cluster.
* calls `step`, which generates a set of potential events (like node failure or clock skew), which are fed `execute_step` function.
* `execute_step` puts those events into a queue and then generates the anti-event (e.g., if the node goes down, a corresponding node up event is created).

Note:
If you want to see print statements, pass `-s` to pytest.