auto commit

This commit is contained in:
CyC2018 2019-02-17 22:37:23 +08:00
parent 88617d84f8
commit e58fecf513
9 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -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>
# 参考

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB