datatechnology / cornerstone Goto Github PK
View Code? Open in Web Editor NEWC++ implementation of raft consensus
License: Apache License 2.0
C++ implementation of raft consensus
License: Apache License 2.0
Hello,
Can you please provide your inputs -
Consider I have 5 servers (S1,S2,S3,S4,S5) , and 7 tasks which are running on these servers. Each task needs 2 replicas.
For task T1 - I can have S1,S2,S3 where S1 is the leader
For task T2 - I can have S2,S1,S3 where S2 is the leader
and so on. Its possible one of the server goes down, then I should be able to add one of the existing server like say if S1 goes down, I should be able to S4 instead.
Can cornerstone be used for such kind of use case, do you have some pointers for this.
regards
Currently there is a recursive lock in raft_server which is used to concurrent all resource access in side that object, we should reduce the contention by using small locks
I had a look through the code, but no raft implementation could be correct if doesn't call fsync or equivalent at the appropriate places. Please forgive me if I missed it, but does this code call fsync?
I'm trying to do the bootstrap like this:
add_server_request
with LastLogIndex=0, LastLogTerm=0, EntriesLength=1, CommitIndex=0 and Term=0
to server 1 using a dedicated client with id=0.Related code is here
I would like to point out that identifiers like “_CORNERSTONE_HXX_
” and “_RAFT_SERVER_HXX_
” do eventually not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?
We need to have pre-vote support for this library
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.