eraft
eraft copied to clipboard
A generic raft library
WellWood
Wellwood is a distributed block storage system, based on multi raft algorithm, we store file blocks in a distributed manner. Ensure high availability and provide ultra large capacity storage support.
The following is our architecture diagram:
build
git clone https://github.com/eraft-io/eraft.git
cd eraft
make
quick start
run meta server
./meta_server -id 0 -peers 127.0.0.1:8088,127.0.0.1:8089,127.0.0.1:8090
./meta_server -id 1 -peers 127.0.0.1:8088,127.0.0.1:8089,127.0.0.1:8090
./meta_server -id 2 -peers 127.0.0.1:8088,127.0.0.1:8089,127.0.0.1:8090
add server group to cluster
./wellwood-ctl add_server_group 127.0.0.1:8088,127.0.0.1:8089,127.0.0.1:8090 1 127.0.0.1:7088,127.0.0.1:7089,127.0.0.1:7090
check cluster topo
./wellwood-ctl get_cluster_topo 127.0.0.1:8088,127.0.0.1:8089,127.0.0.1:8090
output
{
"server_group_metas": {
"config_version": 1,
"slots": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
"server_groups": {
"1": "127.0.0.1:7088,127.0.0.1:7089,127.0.0.1:7090"
}
}
}
run block_server
./block_server -id 0 -gid 1 -peers 127.0.0.1:7088,127.0.0.1:7089,127.0.0.1:7090
./block_server -id 1 -gid 1 -peers 127.0.0.1:7088,127.0.0.1:7089,127.0.0.1:7090
./block_server -id 2 -gid 1 -peers 127.0.0.1:7088,127.0.0.1:7089,127.0.0.1:7090
run web dashboard
./dashboard -meta_addrs 127.0.0.1:8088,127.0.0.1:8089,127.0.0.1:8090
to http://127.0.0.1:12008/
Next step
- Full documentation