在任何时刻,每一个服务器节点都处于这三个状态之一:leader、follower 或者candidate。 At any given time each server is in one of three states: leader, follower , or candidate. Follower 是被动的,不会对自身发出请求而是对来自leader和candidate的请求做出响应。Followers are passive: they issue no requests on their own but simply respond to requests from leaders and candidates.每个服务器处于3个状态之一:leader、follower 或candidate。 Servers may in one of three states: leader, follower , or candidate. Leader针对每一个follower 都维护了一个nextIndex,表示leader要发送给follower 的下一个日志条目的索引。 The leader maintains a nextIndex for each follower , which is the index of the next log entry the leader will send to that follower . 在任何时刻,每一个服务器节点都处于这三个状态之一:leader、follower 或者candidate。 A node in a system can only be in one of the three states at any point in time: leader, follower , and candidate.
正常操作状态下,仅有一个leader,其他的服务器均为follower 。 In normal operation there is exactly one leader and all of the other servers are followers . 因此在该例子中,单个Leader所使用的网络I/O,至少是Follower 的四倍。 So, in this example, being a leader is at least four times as expensive as being a follower in terms of network I/O used. 他还把有关暴风雪的第一手资料发到拥有超过一百万推客(follower )的推特(Twitter)上。 He also tweeted his first-hand observations of the snow to his more than one million Twitter followers . 在任何时刻,每一个服务器节点都处于这三个状态之一:leader、follower 或者candidate。 At any given time, a node can be in one of three states: Follower , Candidate, or Leader. 消息传递层负责替换失败的leader,并将follower 与leader同步. The messaging layer takes care of replacing leaders on failures and syncing followers with leaders. 最终nextIndex会在某个位置使得leader和follower 的日志达成一致。 Eventually the nextIndex will reach a point where the leader and follower logs match. 如果一个candidate或者leader发现自己的任期号过期了,它会立即回到follower 状态。 If a candidate or leader determines that its term is out of date, it will immediately revert to follower state. Leader处理所有的客户端请求(若客户端联系follower ,则该follower 将转发给leader)。 The leader handles all client requests(if a client contacts a follower , the follower redirects it to the leader). 每个服务器处于3个状态之一:leader、follower 或candidate。 Raft works by assigning each server one of three states: leader, follower or candidate. 这种不一致会在一系列的leader和follower 崩溃的情况下加剧。 These inconsistencies can compound over a series of leader and follower crashes. 在任何时刻,每一个服务器节点都处于这三个状态之一:leader、follower 或者candidate。 In Raft, at any given time each node can be in exactly one of three states: leader, follower , or candidate. 如果follower 的日志和leader的不一致,那么下一次AppendEntriesRPC中的一致性检查就会失败。 If a follower 's log is inconsistent with the leader's, the AppendEntries consistency check will fail in the next AppendEntries RPC. Kafka中的每个分区都有一个扮演Leader角色的服务器,而没有一个或多个服务器充当Follower 。 Every partition in Kafka has one server which plays the role of a Leader, and none or more servers that act as Followers . 因此,每当AppendEntriesRPC返回成功时,leader就知道follower 的日志一定和自己相同(从第一个日志条目到最新条目)。 As a result, whenever AppendEntries returns successfully, the leader knows that the follower 's log is identical to its own log up through the new entries. Failure and recovery of two followers .
Display more examples
Results: 95 ,
Time: 0.0196