Blog: Raft algorithm#16
Conversation
|
|
||
| #### **1. Consensus algorithm** | ||
|
|
||
| Consensus algorithm means you have a cluster node, you want all of the nodes in the cluster to have the same information, data,... |
There was a problem hiding this comment.
Could mention here some tech that uses raft. From what I can figure out: NATS, Elasticsearch, and Etcd are some I think
There was a problem hiding this comment.
This sentence has poor grammar, can you improve this? "concensus algirhtm means" "same imformation, data..."
| #### **1. Consensus algorithm** | ||
|
|
||
| Consensus algorithm means you have a cluster node, you want all of the nodes in the cluster to have the same information, data,... | ||
| In order to do that, Consensus applies a mechanism in the cluster we will have one server Leader, it has mission replicate data for |
There was a problem hiding this comment.
consensus can not do things. consensus is a state of agreement.
There was a problem hiding this comment.
Leader is not a proper noun. 'leader' is better, and you can bold it for emphasis.
|
|
||
| Consensus algorithm means you have a cluster node, you want all of the nodes in the cluster to have the same information, data,... | ||
| In order to do that, Consensus applies a mechanism in the cluster we will have one server Leader, it has mission replicate data for | ||
| all of other servers in the cluster. Another thing Consensus algorithm guarantee available for the cluster, for example, when sever Leader |
There was a problem hiding this comment.
'consensus algorithms'
'guarantee is'
'cluster availability'
'when the server leader'
| Consensus algorithm means you have a cluster node, you want all of the nodes in the cluster to have the same information, data,... | ||
| In order to do that, Consensus applies a mechanism in the cluster we will have one server Leader, it has mission replicate data for | ||
| all of other servers in the cluster. Another thing Consensus algorithm guarantee available for the cluster, for example, when sever Leader | ||
| is crashed the cluster will have another server instead immediately. Consensus algorithm properties include: safety, availability, integrity. |
There was a problem hiding this comment.
'crashes'.
Is it actually immediately?
| In order to do that, Consensus applies a mechanism in the cluster we will have one server Leader, it has mission replicate data for | ||
| all of other servers in the cluster. Another thing Consensus algorithm guarantee available for the cluster, for example, when sever Leader | ||
| is crashed the cluster will have another server instead immediately. Consensus algorithm properties include: safety, availability, integrity. | ||
| Consensus algorithm is usually used in distributed systems to solve some consensus issues. |
There was a problem hiding this comment.
I think this sentence can be removed and you can mention 'distributed systems' in the first sentences.
|  | ||
|
|
||
| #### **2. Raft algorithm** | ||
| Raft is algorithm for managing a replicated log of the form. Raft implements by first electing a server Leader, then giving the Leader complete |
There was a problem hiding this comment.
'Raft is a consensus algorithm that uses a replicated log data structure'
|
|
||
| #### **2. Raft algorithm** | ||
| Raft is algorithm for managing a replicated log of the form. Raft implements by first electing a server Leader, then giving the Leader complete | ||
| responsibility for managing the replicated log. The Leader accepts log entries from client, replicate them on other servers, and tell servers |
There was a problem hiding this comment.
'replicates them'
'and tells servers'
'to their state machines'
|
|
||
| #### **2. Raft algorithm** | ||
| Raft is algorithm for managing a replicated log of the form. Raft implements by first electing a server Leader, then giving the Leader complete | ||
| responsibility for managing the replicated log. The Leader accepts log entries from client, replicate them on other servers, and tell servers |
There was a problem hiding this comment.
'replicates them'
'and tells servers'
'to their state machines'
| when it is safe to apply log entries to their state machine. | ||
|
|
||
| ##### **2.1. Term** | ||
| * **Term** is a number marked for the period at the beginning of Leader voting until the vote is successful, the new Leader will manage |
There was a problem hiding this comment.
'is a number marked for the period at the beginning of Leader voting until the vote is successful,'
Is difficult to undestand.
| when it is safe to apply log entries to their state machine. | ||
|
|
||
| ##### **2.1. Term** | ||
| * **Term** is a number marked for the period at the beginning of Leader voting until the vote is successful, the new Leader will manage |
There was a problem hiding this comment.
'is a number marked for the period at the beginning of Leader voting until the vote is successful,'
Is difficult to undestand.
I introduce about Consensus algorithm, Raft's properties and some way Raft do to achieve consistency.