# etcd
[](https://goreportcard.com/report/github.com/etcd-io/etcd)
[](https://codecov.io/gh/etcd-io/etcd)
[](https://github.com/etcd-io/etcd/actions/workflows/tests.yaml)
[](https://github.com/etcd-io/etcd/actions/workflows/asset-transparency.yaml)
[](https://github.com/etcd-io/etcd/actions/workflows/codeql-analysis.yml)
[](https://github.com/etcd-io/etcd/actions/workflows/self-hosted-linux-arm64-graviton2-tests.yml)
[](https://etcd.io/docs)
[](https://godoc.org/github.com/etcd-io/etcd)
[](https://github.com/etcd-io/etcd/releases)
[](https://github.com/etcd-io/etcd/blob/main/LICENSE)
**Note**: The `main` branch may be in an *unstable or even broken state* during development. For stable versions, see [releases][github-release].

etcd is a distributed reliable key-value store for the most critical data of a distributed system, with a focus on being:
* *Simple*: well-defined, user-facing API (gRPC)
* *Secure*: automatic TLS with optional client cert authentication
* *Fast*: benchmarked 10,000 writes/sec
* *Reliable*: properly distributed using Raft
etcd is written in Go and uses the [Raft][] consensus algorithm to manage a highly-available replicated log.
etcd is used [in production by many companies](./ADOPTERS.md), and the development team stands behind it in critical deployment scenarios, where etcd is frequently teamed with applications such as [Kubernetes][k8s], [locksmith][], [vulcand][], [Doorman][], and many others. Reliability is further ensured by [**rigorous testing**](https://github.com/etcd-io/etcd/tree/main/tests/functional).
See [etcdctl][etcdctl] for a simple command line client.
[raft]: https://raft.github.io/
[k8s]: http://kubernetes.io/
[doorman]: https://github.com/youtube/doorman
[locksmith]: https://github.com/coreos/locksmith
[vulcand]: https://github.com/vulcand/vulcand
[etcdctl]: https://github.com/etcd-io/etcd/tree/main/etcdctl
## Community meetings
etcd contributors and maintainers have monthly (every four weeks) meetings at 11:00 AM (USA Pacific) on Thursday.
An initial agenda will be posted to the [shared Google docs][shared-meeting-notes] a day before each meeting, and everyone is welcome to suggest additional topics or other agendas.
[shared-meeting-notes]: https://docs.google.com/document/d/16XEGyPBisZvmmoIHSZzv__LoyOeluC5a4x353CX0SIM/edit
Time:
- [Jan 10th, 2019 11:00 AM video](https://www.youtube.com/watch?v=0Cphtbd1OSc&feature=youtu.be)
- [Feb 7th, 2019 11:00 AM video](https://youtu.be/U80b--oAlYM)
- [Mar 7th, 2019 11:00 AM video](https://youtu.be/w9TI5B7D1zg)
- [Apr 4th, 2019 11:00 AM video](https://youtu.be/oqQR2XH1L_A)
- [May 2nd, 2019 11:00 AM video](https://youtu.be/wFwQePuDWVw)
- [May 30th, 2019 11:00 AM video](https://youtu.be/2t1R5NATYG4)
- [Jul 11th, 2019 11:00 AM video](https://youtu.be/k_FZEipWD6Y)
- [Jul 25, 2019 11:00 AM video](https://youtu.be/VSUJTACO93I)
- [Aug 22, 2019 11:00 AM video](https://youtu.be/6IBQ-VxQmuM)
- [Sep 19, 2019 11:00 AM video](https://youtu.be/SqfxU9DhBOc)
- Nov 14, 2019 11:00 AM
- Dec 12, 2019 11:00 AM
- Jan 09, 2020 11:00 AM
- Feb 06, 2020 11:00 AM
- Mar 05, 2020 11:00 AM
- Apr 02, 2020 11:00 AM
- Apr 30, 2020 11:00 AM
- May 28, 2020 11:00 AM
- Jun 25, 2020 11:00 AM
- Jul 23, 2020 11:00 AM
- Aug 20, 2020 11:00 AM
- Sep 17, 2020 11:00 AM
- Oct 15, 2020 11:00 AM
- Nov 12, 2020 11:00 AM
- Dec 10, 2020 11:00 AM
Join Hangouts Meet: [meet.google.com/umg-nrxn-qvs](https://meet.google.com/umg-nrxn-qvs)
Join by phone: +1 405-792-0633 PIN: 299 906#
## Getting started
### Getting etcd
The easiest way to get etcd is to use one of the pre-built release binaries which are available for OSX, Linux, Windows, and Docker on the [release page][github-release].
For more installation guides, please check out [play.etcd.io](http://play.etcd.io) and [operating etcd](https://etcd.io/docs/latest/op-guide).
For those wanting to try the very latest version, [build the latest version of etcd][dl-build] from the `main` branch. This first needs [*Go*](https://golang.org/) installed ([version 1.16+](/go.mod#L3) is required). All development occurs on `main`, including new features and bug fixes. Bug fixes are first targeted at `main` and subsequently ported to release branches, as described in the [branch management][branch-management] guide.
[github-release]: https://github.com/etcd-io/etcd/releases
[branch-management]: https://etcd.io/docs/latest/branch_management
[dl-build]: https://etcd.io/docs/latest/dl-build#build-the-latest-version
### Running etcd
First start a single-member cluster of etcd.
If etcd is installed using the [pre-built release binaries][github-release], run it from the installation location as below:
```bash
/tmp/etcd-download-test/etcd
```
The etcd command can be simply run as such if it is moved to the system path as below:
```bash
mv /tmp/etcd-download-test/etcd /usr/local/bin/
etcd
```
If etcd is [built from the main branch][dl-build], run it as below:
```bash
./bin/etcd
```
This will bring up etcd listening on port 2379 for client communication and on port 2380 for server-to-server communication.
Next, let's set a single key, and then retrieve it:
```
etcdctl put mykey "this is awesome"
etcdctl get mykey
```
etcd is now running and serving client requests. For more, please check out:
- [Interactive etcd playground](http://play.etcd.io)
- [Animated quick demo](https://etcd.io/docs/latest/demo)
### etcd TCP ports
The [official etcd ports][iana-ports] are 2379 for client requests, and 2380 for peer communication.
[iana-ports]: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
### Running a local etcd cluster
First install [goreman](https://github.com/mattn/goreman), which manages Procfile-based applications.
Our [Procfile script](./Procfile) will set up a local example cluster. Start it with:
```bash
goreman start
```
This will bring up 3 etcd members `infra1`, `infra2` and `infra3` and optionally etcd `grpc-proxy`, which runs locally and composes a cluster.
Every cluster member and proxy accepts key value reads and key value writes.
Follow the steps in [Procfile.learner](./Procfile.learner) to add a learner node to the cluster. Start the learner node with:
```bash
goreman -f ./Procfile.learner start
```
### Next steps
Now it's time to dig into the full etcd API and other guides.
- Read the full [documentation][].
- Explore the full gRPC [API][].
- Set up a [multi-machine cluster][clustering].
- Learn the [config format, env variables and flags][configuration].
- Find [language bindings and tools][integrations].
- Use TLS to [secure an etcd cluster][security].
- [Tune etcd][tuning].
[documentation]: https://etcd.io/docs/latest
[api]: https://etcd.io/docs/latest/learning/api
[clustering]: https://etcd.io/docs/latest/op-guide/clustering
[configuration]: https://etcd.io/docs/latest/op-guide/configuration
[integrations]: https://etcd.io/docs/latest/integrations
[security]: https://etcd.io/docs/latest/op-guide/security
[tuning]: https://etcd.io/docs/late
etcd-v3.5.11
需积分: 0 19 浏览量
更新于2023-12-21
收藏 19.64MB ZIP 举报
**etcd v3.5.11:分布式键值存储系统**
etcd是CoreOS公司开发的一个开源项目,它是一个分布式的、可靠的键值存储系统,用于共享配置和服务发现。etcd基于Google的gRPC框架,采用 raft一致性算法来确保数据在集群中的强一致性。在 Kubernetes、Docker 等容器编排系统中,etcd扮演着至关重要的角色,存储了整个集群的状态和配置信息。
**版本3.5.11详解**
etcd v3.5.11是etcd的一个稳定版本,主要提供性能优化、安全性和稳定性方面的改进。此版本可能包含了一些bug修复,以提高服务的可靠性和用户体验。具体更新内容通常会在官方发布日志中详细说明,包括对先前版本中发现的问题的解决以及对功能的增强。
**Windows平台支持**
etcd-v3.5.11-windows版本是专门为Windows操作系统编译的二进制包,使得Windows用户也能部署和运行etcd服务。这个版本包含了适用于Windows AMD64架构的可执行文件,使得在Windows服务器上构建和管理高可用的etcd集群成为可能。
**文件名解析**
在提供的压缩包文件名称"etcd-v3.5.11-windows-amd64"中,我们可以解析出以下信息:
- "etcd-v3.5.11":表示这是etcd的v3.5.11版本。
- "windows":表明这是为Windows操作系统设计的版本。
- "amd64":意味着该版本适用于64位的AMD或Intel处理器,这几乎涵盖了所有现代Windows服务器和桌面系统。
**安装与使用**
在Windows上部署etcd v3.5.11,你需要解压下载的压缩包,然后运行相应的可执行文件。通常,etcd可以通过命令行参数配置,如设置初始集群成员、监听地址、数据目录等。此外,还可以通过配置文件(如`etcd.conf`)来定义更复杂的设置。
**etcd集群**
etcd集群由多个节点组成,每个节点都运行着etcd服务。节点间通过gRPC通信,通过raft协议进行数据同步。当节点数量达到奇数时,可以保证即使在单个节点故障的情况下,集群仍能保持服务不中断,从而实现高可用性。
**API和客户端**
etcd提供了HTTP/2接口,支持JSON编码的gRPC调用。这使得开发人员可以方便地通过HTTP请求与etcd交互。同时,有多种编程语言的客户端库可供选择,如Go、Python、Java、JavaScript等,简化了与etcd集成的工作。
**总结**
etcd v3.5.11是一个针对Windows平台的高可用分布式键值存储系统,其稳定性和安全性在许多关键的云基础设施中得到了验证。理解和熟练使用etcd对于构建和管理分布式系统,尤其是Kubernetes这样的容器编排平台,是非常必要的。通过掌握etcd的安装、配置、操作和监控,可以提升系统的可靠性,并为应用程序提供一致性的数据访问服务。

程序员Forlan
- 粉丝: 1954
最新资源
- 吴恩达机器学习公开课程作业中文版本及 Python 实现内容
- 论文针对航空发动机控制问题,提出了一种基于切换系统方法的固定时间控制器设计(含详细代码及解释)
- 电力系统电动汽车参与电量与备用市场联合风险调度:基于合约机制与多场景优化的收益最大化模型设计(含详细代码及解释)
- 这篇文章详细探讨了小电流接地系统中单相接地故障选线的新原理和技术实现,旨在解决传统选线方法在面对参数变化和高阻故障时准确率低的问题(含详细代码及解释)
- 基于C语言的码元同步程序
- 解决裂缝型储层压裂后复杂人工裂缝网络难以定量诊断的问题(含详细代码及解释)
- 机器学习基于SVM的糖尿病数据分类模型构建与分析:从数据预处理到模型评估的全流程实践(含详细代码及解释)
- ROS、工业自动化、OpenCV、3D 点云与机器学习在机械臂中的应用
- 【金属增材制造】高强铝合金电弧增材制造工艺研究及优化:从理论建模到工业应用的全面解析(含详细代码及解释)
- 【电力系统调频】基于VMD的储能辅助火电机组二次调频控制策略及容量优化配置研究(含详细代码及解释)
- 2025电赛备赛-Maixcam视觉模块
- 【自然语言处理】基于扩散模型的DiffusionSL序列标注方法:非自回归标签生成与优化usionSL(含详细代码及解释)
- Coursera 平台林轩田教授主讲的机器学习课程
- 【无刷直流电动机】基于PWM调制策略的换相转矩脉动抑制技术实现与分析:三相协同调制算法在全速域的应用(含详细代码及解释)
- 【航空市场竞争结构分析】基于进入与定价决策的计量经济学模型:Python代码实现与反事实分析(含详细代码及解释)