Coder Social home page Coder Social logo

raft-kv's Introduction

raft 介绍

基于raft论文实现的分布式key/value数据库,节点之前通信使用http

实现功能:

  1. 领导人选举 (完成)
  2. 日志复制 (未实现)
  3. 集群成员变化 (未实现)
  4. 日志压缩 (未实现)

运行

原生方式运行

要求:java 11+

  1. package
mvn clean package -DskipTests=true
cd raft-server
  1. 运行
java -jar /target/raft-service.jar  node2@8082,node1@8081,node3@8083,
java -jar /target/raft-service.jar  node1@8081,node2@8082,node3@8083,
  1. 结果

可以观察到节点之间的选举过程:

raft-kv's People

Watchers

ChunFuWu avatar abing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.