etcd 进阶
2022/10/12小于 1 分钟
etcd 进阶
1. etcd 的请求是如何执行的?
1.1 读请求
client -> api -> KVServer 拦截器 -> read index -> read status (一致性返回状态机) -> MVCC (b tree 内存(key -> restore ){2(), 0 (版本号)} + boltdb b+tree burket 页 (二分 value 磁盘 IO)) -> 返回客户端
client -> api -> KVServer 拦截器 -> read index -> read status (一致性返回状态机) -> MVCC (b tree 内存(key -> restore ){2(), 0 (版本号)} + boltdb b+tree burket 页 (二分 value 磁盘 IO)) -> 返回客户端