2018年9月13日

摘要: 1 // Copyright 2014 Google Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in com 阅读全文
posted @ 2018-09-13 15:53 itdef 阅读(1209) 评论(0) 推荐(0)
摘要: 一旦Leader选定之后,我们将复制所有的操作到每个节点上。 这个是通过心跳包中的Append Entries message结构体来进行实现的 客户端发送一个操作到Leader中(即使客户端发送操作到Follower,操作也会被转发到Leader处理) Leader将操作附加到自己的Log日志中 阅读全文
posted @ 2018-09-13 14:25 itdef 阅读(239) 评论(0) 推荐(0)

导航