首页 > 其他分享 >etcd写流程

etcd写流程

时间:2022-10-04 11:12:42浏览次数:42  
标签:流程 server 状态机 msgWithResult etcd etcdRaft

0)整体结构

1)server->etcdRaft, 处理协程生成msgWithResult

 

 2)etcdRaft模块,从proc取出msgWithResult

调用step驱动状态机

 

封装成Ready实例

给server发送:readyc <- rd

3)server处理ready

rd := <-r.Ready()

标签:流程,server,状态机,msgWithResult,etcd,etcdRaft
From: https://www.cnblogs.com/jiangshifu/p/16753446.html

相关文章