Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 1.24 KB

README.md

File metadata and controls

62 lines (50 loc) · 1.24 KB

Distributed Key-Value Database

A Key-Value storage system based on RAFT.

ReUp
“如果喜欢,感觉有用,麻烦随手star一下嗷~”
“2023上半年会更新仓库代码,问题请联系 [email protected]

Usage

The compiling environment.

Ubuntu 20.04

Compile the RUDB.

make
make clean

Run the RUDB's client.

./kvstore2pcsystem

Run the RUDB's servers.

./kvstore2pcsystem --c <filename>.conf

Configure node.

mode coordinator
coordinator_info 127.0.0.1:8001
participant_info 127.0.0.1:8002
participant_info 127.0.0.1:8003
participant_info 127.0.0.1:8004

You can send the command:

SET key value
GET key
DEL key

Example Usage

Example Usage of client.

./kvstore2pcsystem

Example Usage of servers. You can run this command line in sequence in different Windows.

./kvstore2pcsystem --c ./other/coordinator.conf

./kvstore2pcsystem --c ./other/coordinator1.conf

./kvstore2pcsystem --c ./other/coordinator2.conf

./kvstore2pcsystem --c ./other/coordinator3.conf