GithubHelp home page GithubHelp logo

tinykv-1's Introduction

The TinyKV Course

This course is a series of labs on a key-value storage system built with the Raft consensus algorithm. These labs are inspired by the famous MIT 6.824 course, but aim to be closer to industry implementations. The whole course is pruned from TiKV and re-written in Go. After completing this course, you will have the knowledge to implement a basic key-value storage service with distributed transactions and fault-tolerance and better understanding of TiKV implementation.

The whole project is a skeleton code for a kv server and a scheduler server at initial, and you need to finish the core logic step by step:

  • LAB1: build a standalone key-value server
  • LAB2: build a fault tolerant key-value server with Raft
  • LAB3: support multi Raft group and balance scheduling on top of LAB2
  • LAB4: support distributed transaction on top of LAB3

Important note: This course is still in developing, and the document is incomplete. Any feedback and contribution is greatly appreciated. Please see help wanted issues if you want to join in the development.

Build

make

Test

make test

Run(Not runnable now)

Put the binary of tinyscheduler-server, tinykv-server and tidb-server into a single dir.

Under the binary dir, run the following commands:

mkdir -p data
./tinyscheduler-server
./tinykv-server -path=data
./tinysql-server --store=tikv --path="127.0.0.1:2379"

Documentation

Course material is in google doc now. It will be moved to github once polish finsihed.

This repo contains a single module: tinykv. Each package is documented either in a doc.go file or, if it is a single file package, in the single file.

tinykv-1's People

Contributors

coocood avatar connor1996 avatar ngaut avatar bobotu avatar cfzjywxk avatar nrc avatar zhangjinpeng87 avatar xiaobogaga avatar yangkeao avatar ninglin-p avatar disksing avatar andylokandy avatar lysu avatar fengzixu avatar iosmanthus avatar jychen7 avatar clark1013 avatar zyh-hust avatar jackysp avatar kana112233 avatar jiangyuzhao avatar

Watchers

James Cloos avatar  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.