不清楚怎么实现?
leader --rpc --follower
然后 follower ->rcp ->leader 这个流程吗?
具体问题:
- MessageType_MsgPropose 广播自己的消息吗?
- tick() 这个函数 间隔n秒 发送 心跳报吗MsgBeat,这个通过什么函数发送的的
Leaders send periodic
heartbeats (AppendEntries RPCs that carry no log entries)
to all followers in order to maintain their authority