Git Product home page Git Product logo

riteraft's Introduction

Chojan Shang
Data Is Dead, Long Live Value.

10 / 24 / 1998 - ?? / ?? / ????

"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." – Larry Wall

psiace

Intro

Passionate about open source. Stay curious about knowledge. Build large-scale systems. Live alongside data.

  • I am currently pursuing a Master's degree in Applied Mathematics and Data Science.
  • I am also working for Databend to build The Future of Cloud [Data + AI] Analytics.
  • I am also a PMC Member of Apache OpenDAL™, dedicated to creating a unified data access experience for developers.

Contact

If you want to communicate with me, there's no problem at all. I am more than happy to share my knowledge, experience, and insights with you.

👀 See my contact information

riteraft's People

Contributors

jopemachine avatar psiace avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

riteraft's Issues

How to implement the snapshot for persistent database?

I saw the snapshot interface is very simple now, only copy the mem data to the followers' node.
Anyone knows how to implement a snapshot for the persistent database which is more suitable for the real-world use case.

Crashed after 255 commit

Hi all, I use this library in my project, and find it will crash after 255th commit. I also test the example code, it also crashes after subunit around 255 puts.
Here is one log from my project, the crash occurs when the mailbox sends a message and receives an error result.

log
node2_1  | Jul 07 15:16:44.508 INFO [commit: 255] ignored snapshot [index: 245, term: 2], snapshot_term: 2, snapshot_index: 245, commit: 255, raft_id: 3, version: 1.0.0
node3_1  | Jul 07 15:16:44.508 INFO [commit: 255] ignored snapshot [index: 245, term: 2], snapshot_term: 2, snapshot_index: 245, commit: 255, raft_id: 2, version: 1.0.0

node1_1  | thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Unknown', src/main.rs:217:55

Crash code line82 on example
let result = data.0.send(message).await.unwrap();

3 Node Memstore Example - Elections Not Finding Leader

I'm using the memstore example and starting 3 nodes like so:

./target/debug/riteraft-memstore --raft-addr=0.0.0.0:5001 --web-server=0.0.0.0:8001
./target/debug/riteraft-memstore --raft-addr=0.0.0.0:5002 --web-server=0.0.0.0:8002 --peer-addr=0.0.0.0:5001
./target/debug/riteraft-memstore --raft-addr=0.0.0.0:5003 --web-server=0.0.0.0:8003 --peer-addr=0.0.0.0:5001

When I kill the first process (5001), the last two don't seem to be figuring out a new leader. Elections seem to be triggering over and over, neither (5002, 5003) wins the election, but they do seem to be requesting votes from each other.

Am I passing the wrong arguments ?

Thanks for the help

Dev Branch - Failed to build a 3-node cluster

Hi,

Thank you for building such a wonderful crate. It is very interesting.
However, I'm trying to run the example code, but the third node doesn't seem to join the cluster correctly, is there a problem with my command execution?

$ ./target/debug/riteraft-memstore --raft-addr=0.0.0.0:5001 --web-server=0.0.0.0:8001
$ ./target/debug/riteraft-memstore --raft-addr=0.0.0.0:5002 --web-server=0.0.0.0:8002 --peer-addr=0.0.0.0:5001
$ ./target/debug/riteraft-memstore --raft-addr=0.0.0.0:5003 --web-server=0.0.0.0:8003 --peer-addr=0.0.0.0:5001
$ curl -XGET http://localhost:8001/put/1/AAA

$ curl -XGET http://localhost:8001/get/1
Some("AAA")

$ curl -XGET http://localhost:8002/get/1
Some("AAA")

$ curl -XGET http://localhost:8003/get/1
None

How can I solve this problem?

Thanks,

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.