RAFT consensus algorithm implementation
Project description
raftnode
RAFT consensus algorithm implementation
Free software: MIT license
Documentation: https://raftnode.readthedocs.io.
Installation
By default, raftnode stores the data in memory. To install the vanilla version, follow these steps:
pip install raftnode
A persistent database can be used instead of the in-memory data storage. By default, raftnode uses rocksdb. To install this version of raftnode, follow these instructions:
pip install raftnode[rocksdb]
Basic Usage
Use in memory data store:
raftnode --ip <MY_IP:MY_PORT> --peers <PEER1:PORT1>,<PEER2:PORT2>,...,<PEERn:PORTn>
…OR use rocksdb database:
raftnode --ip <MY_IP:MY_PORT> --peers <PEER1:PORT1>,<PEER2:PORT2>,...,<PEERn:PORTn> --store database --database <DATABASE_NAME> --volume <DIRECTORY TO STORE THE DATABASE>
For detailed usage, click here
For more detailed CLI instructions:
raftnode --help
Features
TODO
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2021-07-21)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for raftnode-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a47980984b06795780c09e94be645ac25fb9a662302129c9855d01b585d4ee |
|
MD5 | c5daf1bd23fb9e2a17ecaabe30c89d89 |
|
BLAKE2b-256 | 625457cdab6350380af9b002b066e836be3a36d80b88c3f87f6cb54af050da7d |