Coder Social home page Coder Social logo

mit6.824-2017-raft's Introduction

mit-6.824

MIT 6.824课程的作业,目前完成了raft的所有测试,我用脚本跑过几百次,没有发现问题,如有未发现的错误请指出。最初的raft-v1版本的代码实现思路有部分参考 https://github.com/yuyang0/mit-6.824.git ,当然具体实现亦大有不同。   当前的实现颇为粗糙,没有考虑data race,此外代码结构也不甚清晰,有时间再优化为一个状态机版本,那样实现逻辑会更加清晰。 raft-v1这个tag的实现比较粗糙,没有解决data race,代码冗余较多。新写了一个raft-v2版本,解决了data race并优化了部分代码,集中在一个goroutine里面处理raft节点的状态变化,节点状态变化集中处理这部分有参考 https://github.com/happyer/distributed-computing/blob/master/src/raft/raft.go 。测试请使用 go test -race命令,要测试个几百次,如果次数太少了可能有些BUG可能很难测试出来。

mit6.824-2017-raft's People

Contributors

shishujuan avatar shishujuanhust avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

wang2467

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.