Skip to content

Commit

Permalink
Update Consensus-Protocol.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SUMUKHA-PK authored Apr 4, 2020
1 parent 02239c8 commit 2b900c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/internal/parser/scanner/Consensus-Protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ A detailed description of all the modules follow:
* Pre-log replication: Once a leader is elected, it starts servicing the client. The leader appends a new request to its `New Entry` log then issues `AppendEntriesRPC` in parallel to all its peers.
* Successful log: When all logs have been applied successfully to all follower machines, the leader applies the entry to its state machine and returns the result to the client.
* Repeating `AppendEntries`: `AppendEntriesRPC` are repeated indefinitely until all followers eventually store all log entries.
* Log entry storage:
* Log entry storage: Log entries are a queue of state machine commands which are applied to that particular state machine. Log entries are associated with a term number to indicate the term of application of that log along with an integer index to identify a particular logs position.
* Committed entry: A log entry is called committed once its replicated on the majority of the servers in the cluster. Once an entry is committed, it commits all the previous entries in the leaders log, including the entries created by the previous leaders. Once a follower learns that
* Add more from section 3.6

#### Implementation

Expand Down

1 comment on commit 2b900c0

@tsatke
Copy link
Contributor

@tsatke tsatke commented on 2b900c0 Apr 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason that this document is in internal/parser/scanner?

Please sign in to comment.