
etcd
文章平均质量分 82
北京时光
如果生命是一树繁华,那么我愿默守枝丫,随风尘起落。
展开
-
etcd-操作
title: DemoThis series of examples shows the basic procedures for working with an etcd cluster.Set up a clusterOn each etcd node, specify the cluster members:TOKEN=token-01CLUSTER_STATE=newNAME_1=machine-1NAME_2=machine-2NAME_3=machine-3HOST_1=1.原创 2021-04-08 17:45:28 · 197 阅读 · 0 评论 -
etcd-初识
一致性-etcd采用 Raft算法raft算法大致原理leader:对客户端通信的入口,对内数据同步的发起者,一个集群通常只有一个leader节点follower:非leader的节点,被动的接受来自leader的数据请求candidate: 一种临时的角色,只存在于leader的选举阶段,某个节点想要变成leader,那么就发起投票请求,同时自己变成candidate。如果选举成功,则变为candidate,否则退回为follower选举过程注意:term作为逻辑时钟而存在。每个节原创 2021-04-08 17:45:06 · 186 阅读 · 0 评论