• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H25-Apr-2020-

Documentation/H25-Apr-2020-

auth/H25-Apr-2020-

client/H25-Apr-2020-

clientv3/H25-Apr-2020-

contrib/H25-Apr-2020-

embed/H25-Apr-2020-

etcdctl/H25-Apr-2020-

etcdmain/H25-Apr-2020-

etcdserver/H25-Apr-2020-

functional/H25-Apr-2020-

hack/H25-Apr-2020-

integration/H25-Apr-2020-

lease/H25-Apr-2020-

logos/H03-May-2022-

mvcc/H25-Apr-2020-

pkg/H25-Apr-2020-

proxy/H25-Apr-2020-

raft/H25-Apr-2020-

scripts/H25-Apr-2020-

security/H25-Apr-2020-

tests/H25-Apr-2020-

tools/H25-Apr-2020-

vendor/H25-Apr-2020-

version/H25-Apr-2020-

wal/H25-Apr-2020-

.gitignoreH A D25-Apr-2020568

.headerH A D25-Apr-2020593

.travis.ymlH A D25-Apr-20204.3 KiB

.wordsH A D25-Apr-20201.2 KiB

ADOPTERS.mdH A D25-Apr-20209.7 KiB

CHANGELOG-2.3.mdH A D25-Apr-2020260

CHANGELOG-3.0.mdH A D25-Apr-202011.2 KiB

CHANGELOG-3.1.mdH A D25-Apr-202028.8 KiB

CHANGELOG-3.2.mdH A D25-Apr-202052.2 KiB

CHANGELOG-3.3.mdH A D25-Apr-202072.5 KiB

CHANGELOG-3.4.mdH A D25-Apr-202083.3 KiB

CHANGELOG-3.5.mdH A D25-Apr-202014.1 KiB

CHANGELOG-4.0.mdH A D25-Apr-20202.6 KiB

CONTRIBUTING.mdH A D25-Apr-20203.3 KiB

DCOH A D25-Apr-20201.4 KiB

Dockerfile-releaseH A D25-Apr-2020623

Dockerfile-release.arm64H A D25-Apr-2020222

Dockerfile-release.ppc64leH A D25-Apr-2020224

Dockerfile-release.s390xH A D25-Apr-2020222

GOVERNANCE.mdH A D25-Apr-20203.7 KiB

LICENSEH A D25-Apr-202011.1 KiB

MAINTAINERSH A D25-Apr-20201 KiB

MakefileH A D25-Apr-202017.9 KiB

ProcfileH A D25-Apr-20201.6 KiB

Procfile.learnerH A D25-Apr-2020900

Procfile.v2H A D25-Apr-20201.6 KiB

README.mdH A D25-Apr-20208.8 KiB

ROADMAP.mdH A D25-Apr-2020900

bill-of-materials.jsonH A D25-Apr-20207.1 KiB

bill-of-materials.override.jsonH A D25-Apr-2020254

buildH A D25-Apr-20202.6 KiB

build.batH A D25-Apr-202051

build.ps1H A D25-Apr-20202.7 KiB

code-of-conduct.mdH A D25-Apr-2020143

etcd.conf.yml.sampleH A D25-Apr-20203.5 KiB

functional.yamlH A D25-Apr-20207.2 KiB

go.modH A D25-Apr-20202 KiB

go.sumH A D25-Apr-202023.1 KiB

main.goH A D25-Apr-20201 KiB

main_test.goH A D25-Apr-20201.1 KiB

testH A D25-Apr-202020.5 KiB

README.md

1# etcd
2
3[![Go Report Card](https://goreportcard.com/badge/github.com/etcd-io/etcd?style=flat-square)](https://goreportcard.com/report/github.com/etcd-io/etcd)
4[![Coverage](https://codecov.io/gh/etcd-io/etcd/branch/master/graph/badge.svg)](https://codecov.io/gh/etcd-io/etcd)
5[![Build Status Travis](https://img.shields.io/travis/etcd-io/etcdlabs.svg?style=flat-square&&branch=master)](https://travis-ci.com/etcd-io/etcd)
6[![Build Status Semaphore](https://semaphoreci.com/api/v1/etcd-io/etcd/branches/master/shields_badge.svg)](https://semaphoreci.com/etcd-io/etcd)
7[![Docs](https://img.shields.io/badge/docs-latest-green.svg)](https://etcd.io/docs)
8[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/etcd-io/etcd)
9[![Releases](https://img.shields.io/github/release/etcd-io/etcd/all.svg?style=flat-square)](https://github.com/etcd-io/etcd/releases)
10[![LICENSE](https://img.shields.io/github/license/etcd-io/etcd.svg?style=flat-square)](https://github.com/etcd-io/etcd/blob/master/LICENSE)
11
12**Note**: The `master` branch may be in an *unstable or even broken state* during development. Please use [releases][github-release] instead of the `master` branch in order to get stable binaries.
13
14![etcd Logo](logos/etcd-horizontal-color.svg)
15
16etcd is a distributed reliable key-value store for the most critical data of a distributed system, with a focus on being:
17
18* *Simple*: well-defined, user-facing API (gRPC)
19* *Secure*: automatic TLS with optional client cert authentication
20* *Fast*: benchmarked 10,000 writes/sec
21* *Reliable*: properly distributed using Raft
22
23etcd is written in Go and uses the [Raft][raft] consensus algorithm to manage a highly-available replicated log.
24
25etcd 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][locksmith], [vulcand][vulcand], [Doorman][doorman], and many others. Reliability is further ensured by [**rigorous testing**](https://github.com/etcd-io/etcd/tree/master/functional).
26
27See [etcdctl][etcdctl] for a simple command line client.
28
29[raft]: https://raft.github.io/
30[k8s]: http://kubernetes.io/
31[doorman]: https://github.com/youtube/doorman
32[locksmith]: https://github.com/coreos/locksmith
33[vulcand]: https://github.com/vulcand/vulcand
34[etcdctl]: https://github.com/etcd-io/etcd/tree/master/etcdctl
35
36## Community meetings
37
38etcd contributors and maintainers have monthly (every four weeks) meetings at 11:00 AM (USA Pacific) on Thursday.
39
40An 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.
41
42[shared-meeting-notes]: https://docs.google.com/document/d/16XEGyPBisZvmmoIHSZzv__LoyOeluC5a4x353CX0SIM/edit
43
44
45Time:
46- [Jan 10th, 2019 11:00 AM video](https://www.youtube.com/watch?v=0Cphtbd1OSc&feature=youtu.be)
47- [Feb 7th, 2019 11:00 AM video](https://youtu.be/U80b--oAlYM)
48- [Mar 7th, 2019 11:00 AM video](https://youtu.be/w9TI5B7D1zg)
49- [Apr 4th, 2019 11:00 AM video](https://youtu.be/oqQR2XH1L_A)
50- [May 2nd, 2019 11:00 AM video](https://youtu.be/wFwQePuDWVw)
51- [May 30th, 2019 11:00 AM video](https://youtu.be/2t1R5NATYG4)
52- [Jul 11th, 2019 11:00 AM video](https://youtu.be/k_FZEipWD6Y)
53- [Jul 25, 2019 11:00 AM video](https://youtu.be/VSUJTACO93I)
54- [Aug 22, 2019 11:00 AM video](https://youtu.be/6IBQ-VxQmuM)
55- [Sep 19, 2019 11:00 AM video](https://youtu.be/SqfxU9DhBOc)
56- Nov 14, 2019 11:00 AM
57- Dec 12, 2019 11:00 AM
58- Jan 09, 2020 11:00 AM
59- Feb 06, 2020 11:00 AM
60- Mar 05, 2020 11:00 AM
61- Apr 02, 2020 11:00 AM
62- Apr 30, 2020 11:00 AM
63- May 28, 2020 11:00 AM
64- Jun 25, 2020 11:00 AM
65- Jul 23, 2020 11:00 AM
66- Aug 20, 2020 11:00 AM
67- Sep 17, 2020 11:00 AM
68- Oct 15, 2020 11:00 AM
69- Nov 12, 2020 11:00 AM
70- Dec 10, 2020 11:00 AM
71
72Join Hangouts Meet: [meet.google.com/umg-nrxn-qvs](https://meet.google.com/umg-nrxn-qvs)
73
74Join by phone: +1 405-792-0633‬ PIN: ‪299 906‬#
75
76
77## Getting started
78
79### Getting etcd
80
81The 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].
82
83For more installation guides, please check out [play.etcd.io](http://play.etcd.io) and [operating etcd](https://etcd.io/docs/latest/op-guide).
84
85For those wanting to try the very latest version, [build the latest version of etcd][dl-build] from the `master` branch. This first needs [*Go*](https://golang.org/) installed (version 1.13+ is required). All development occurs on `master`, including new features and bug fixes. Bug fixes are first targeted at `master` and subsequently ported to release branches, as described in the [branch management][branch-management] guide.
86
87[github-release]: https://github.com/etcd-io/etcd/releases
88[branch-management]: https://etcd.io/docs/latest/branch-management
89[dl-build]: https://etcd.io/docs/latest/dl-build#build-the-latest-version
90
91### Running etcd
92
93First start a single-member cluster of etcd.
94
95If etcd is installed using the [pre-built release binaries][github-release], run it from the installation location as below:
96
97```bash
98/tmp/etcd-download-test/etcd
99```
100
101The etcd command can be simply run as such if it is moved to the system path as below:
102
103```bash
104mv /tmp/etcd-download-test/etcd /usr/local/bin/
105etcd
106```
107
108If etcd is [built from the master branch][dl-build], run it as below:
109
110```bash
111./bin/etcd
112```
113
114This will bring up etcd listening on port 2379 for client communication and on port 2380 for server-to-server communication.
115
116Next, let's set a single key, and then retrieve it:
117
118```
119etcdctl put mykey "this is awesome"
120etcdctl get mykey
121```
122
123etcd is now running and serving client requests. For more, please check out:
124
125- [Interactive etcd playground](http://play.etcd.io)
126- [Animated quick demo](https://etcd.io/docs/latest/demo)
127
128### etcd TCP ports
129
130The [official etcd ports][iana-ports] are 2379 for client requests, and 2380 for peer communication.
131
132[iana-ports]: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
133
134### Running a local etcd cluster
135
136First install [goreman](https://github.com/mattn/goreman), which manages Procfile-based applications.
137
138Our [Procfile script](./Procfile) will set up a local example cluster. Start it with:
139
140```bash
141goreman start
142```
143
144This will bring up 3 etcd members `infra1`, `infra2` and `infra3` and etcd `grpc-proxy`, which runs locally and composes a cluster.
145
146Every cluster member and proxy accepts key value reads and key value writes.
147
148Follow the steps in [Procfile.learner](./Procfile.learner) to add a learner node to the cluster. Start the learner node with:
149
150```bash
151goreman -f ./Procfile.learner start
152```
153
154### Next steps
155
156Now it's time to dig into the full etcd API and other guides.
157
158- Read the full [documentation][fulldoc].
159- Explore the full gRPC [API][api].
160- Set up a [multi-machine cluster][clustering].
161- Learn the [config format, env variables and flags][configuration].
162- Find [language bindings and tools][integrations].
163- Use TLS to [secure an etcd cluster][security].
164- [Tune etcd][tuning].
165
166[fulldoc]: https://etcd.io/docs/latest
167[api]: https://etcd.io/docs/latest/learning/api
168[clustering]: https://etcd.io/docs/latest/op-guide/clustering
169[configuration]: https://etcd.io/docs/latest/op-guide/configuration
170[integrations]: https://etcd.io/docs/latest/integrations
171[security]: https://etcd.io/docs/latest/op-guide/security
172[tuning]: https://etcd.io/docs/latest/tuning
173
174## Contact
175
176- Mailing list: [etcd-dev](https://groups.google.com/forum/?hl=en#!forum/etcd-dev)
177- IRC: #[etcd](irc://irc.freenode.org:6667/#etcd) on freenode.org
178- Planning/Roadmap: [milestones](https://github.com/etcd-io/etcd/milestones), [roadmap](./ROADMAP.md)
179- Bugs: [issues](https://github.com/etcd-io/etcd/issues)
180
181## Contributing
182
183See [CONTRIBUTING](CONTRIBUTING.md) for details on submitting patches and the contribution workflow.
184
185## Reporting bugs
186
187See [reporting bugs](https://etcd.io/docs/latest/reporting-bugs) for details about reporting any issues.
188
189## Reporting a security vulnerability
190
191See [security disclosure and release process](security/README.md) for details on how to report a security vulnerability and how the etcd team manages it.
192
193## Issue and PR management
194
195See [issue triage guidelines](Documentation/triage/issues.md) for details on how issues are managed.
196
197See [PR management](Documentation/triage/PRs.md) for guidelines on how pull requests are managed.
198
199## etcd Emeritus Maintainers
200
201These emeritus maintainers dedicated a part of their career to etcd and reviewed code, triaged bugs, and pushed the project forward over a substantial period of time. Their contribution is greatly appreciated.
202
203* Fanmin Shi
204* Anthony Romano
205
206### License
207
208etcd is under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.
209