前言
etcd 是一个分布式的,一致性键值存储,主要用于共享配置和服务发现
etcd is a distributed, consistent key-value store for shared configuration and service discovery, with a focus on being:
- Simple: curl able user-facing API (HTTP JSON)
- Secure: optional SSL client cert authentication
- Fast: benchmarked 1000s of writes/s per instance
- Reliable: properly distributed using Raft
它是使用 Go 开发的,Raft 算法是其一致性保障的核心
Tip: Raft 的相关细节可以参考 剖析 etcd 和 raft动画
这里简单分享一下 etcd 的基础 ,相关的详细内容可以参考 官方Git
Tip: 当前的最新版本为 etcd v2.2.4 Note: The master branch may be in an unstable or even broken state during development. Please use releases instead of the master branch in order to get stable binaries