diff --git a/docs/notes/pics/101550414151983.gif b/docs/notes/pics/101550414151983.gif new file mode 100644 index 00000000..d52a911e Binary files /dev/null and b/docs/notes/pics/101550414151983.gif differ diff --git a/docs/notes/pics/111550414182638.gif b/docs/notes/pics/111550414182638.gif new file mode 100644 index 00000000..5d9c6f00 Binary files /dev/null and b/docs/notes/pics/111550414182638.gif differ diff --git a/docs/notes/pics/71550414107576.gif b/docs/notes/pics/71550414107576.gif new file mode 100644 index 00000000..fad88513 Binary files /dev/null and b/docs/notes/pics/71550414107576.gif differ diff --git a/docs/notes/pics/91550414131331.gif b/docs/notes/pics/91550414131331.gif new file mode 100644 index 00000000..f81aa264 Binary files /dev/null and b/docs/notes/pics/91550414131331.gif differ diff --git a/docs/notes/分布式.md b/docs/notes/分布式.md index bbbb7dd0..9394de21 100644 --- a/docs/notes/分布式.md +++ b/docs/notes/分布式.md @@ -314,19 +314,19 @@ Raft 也是分布式一致性协议,主要是用来竞选主节点。 - 来自客户端的修改都会被传入 Leader。注意该修改还未被提交,只是写入日志中。 -

+

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

+

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

+

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

+

# 参考 diff --git a/docs/pics/101550414151983.gif b/docs/pics/101550414151983.gif new file mode 100644 index 00000000..d52a911e Binary files /dev/null and b/docs/pics/101550414151983.gif differ diff --git a/docs/pics/111550414182638.gif b/docs/pics/111550414182638.gif new file mode 100644 index 00000000..5d9c6f00 Binary files /dev/null and b/docs/pics/111550414182638.gif differ diff --git a/docs/pics/71550414107576.gif b/docs/pics/71550414107576.gif new file mode 100644 index 00000000..fad88513 Binary files /dev/null and b/docs/pics/71550414107576.gif differ diff --git a/docs/pics/91550414131331.gif b/docs/pics/91550414131331.gif new file mode 100644 index 00000000..f81aa264 Binary files /dev/null and b/docs/pics/91550414131331.gif differ