Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CyC2018 committed Feb 17, 2019
1 parent 88617d8 commit e58fecf
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 4 deletions.
Binary file added docs/notes/pics/101550414151983.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/notes/pics/111550414182638.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/notes/pics/71550414107576.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/notes/pics/91550414131331.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/notes/分布式.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,19 @@ Raft 也是分布式一致性协议,主要是用来竞选主节点。

- 来自客户端的修改都会被传入 Leader。注意该修改还未被提交,只是写入日志中。

<div align="center"> <img src="pics/7.gif"/> </div><br>
<div align="center"> <img src="pics/71550414107576.gif"/> </div><br>

- Leader 会把修改复制到所有 Follower。

<div align="center"> <img src="pics/9.gif"/> </div><br>
<div align="center"> <img src="pics/91550414131331.gif"/> </div><br>

- Leader 会等待大多数的 Follower 也进行了修改,然后才将修改提交。

<div align="center"> <img src="pics/10.gif"/> </div><br>
<div align="center"> <img src="pics/101550414151983.gif"/> </div><br>

- 此时 Leader 会通知的所有 Follower 让它们也提交修改,此时所有节点的值达成一致。

<div align="center"> <img src="pics/11.gif"/> </div><br>
<div align="center"> <img src="pics/111550414182638.gif"/> </div><br>

# 参考

Expand Down
Binary file added docs/pics/101550414151983.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/pics/111550414182638.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/pics/71550414107576.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/pics/91550414131331.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e58fecf

Please sign in to comment.