/raft-impl

Implementation of Raft consensus algorithm

Primary LanguageGoGNU Affero General Public License v3.0AGPL-3.0

Raft Implementation

This is the course assignment for the course Distributed System, Fall 2020, CS@NJU.

In this lab, I implemented the Raft Consensus algorithm according to the paper in Golang, with the following features equipped.

  • Leader Election
  • Log Entry Appending
  • Persistence

How to Test?

In the directory src/raft/, enter the following command to run the unit test.

$ go test

Warning

Plagiarism of this coursework is prohibited. If any, I would report it to the teaching committee.