Skip to content

This is a database with RAFT algorithm implementation, there are still some functions have not been implemented.This code is for learning purposes only.

License

Notifications You must be signed in to change notification settings

RemHero/ReUp-DateBase-Raft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is a database with RAFT algorithm implementation, there are still some functions have not been implemented.This code is for learning purposes only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published