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
- Host: GitHub
- URL: https://github.com/wesleyac/raft
- Owner: WesleyAC
- License: mit
- Created: 2017-09-11T15:38:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T18:42:23.000Z (almost 9 years ago)
- Last Synced: 2025-04-14T03:12:58.321Z (about 1 year ago)
- Language: Python
- Size: 83 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.