Giter VIP home page Giter VIP logo

dissertation's People

Contributors

kijanawoodard avatar ongardie 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  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

dissertation's Issues

Gossip based linearizable read instead going through leader

Section 6.4

\section{Processing read-only queries more efficiently}
\label{clients:readonly}
Read-only client commands only query the replicated state machine; they
do not change it. Thus, it is natural to ask whether these queries can
bypass the Raft log, whose purpose is to replicate changes to the
servers' state machines in the same order. Bypassing the log offers an
attractive performance advantage: read-only queries are common in many
applications, and the synchronous disk writes needed to append entries
to the log are time-consuming.
However, without additional precautions, bypassing the log could lead to
stale results for read-only queries.
For example, a leader might be partitioned from the rest of the
cluster, and the rest of the cluster might have elected a new leader and
committed new entries to the Raft log. If the partitioned leader
responded to a read-only query without consulting the other servers,
it would return stale results, which are not linearizable.
Linearizability requires the results of a read to reflect a state of the
system sometime after the read was initiated; each read must at least
return the results of the latest committed write.
(A system that allowed stale reads would only provide
serializability, which is a weaker form of consistency.)
Problems due to stale reads have already been discovered in two
third-party Raft implementations~\cite{Kingsbury:etcdconsul},
so this issue deserves careful attention.

describes an optimization where reads don't go through raft, but by reading readIndex from leader. This requires 2 hops, and quorum size of requests. First member needs to ask leader for readIndex and leader needs to confirm it has not been superseded by sending a round of heartbeats. This seems not very optimal.

What about having all members gossip about the latest commit index they have seen and require to get updates from at least quorum-1 of members. This would:

  • Remove hop to leader
  • If gossips are frequent enough remove another hop. As we don't need to wait for heartbeat. - was mistaken we always need to request the heartbeat ourselves to maintain correctness while requests can be reordered.
  • Remove read dependency on leader being available

Simplest implementation would be use heartbeats for gossiping.

Just sharing my thoughts, might try to do a PoC for etcd project.

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.