copy of etcd repository
 
 
 
 
 
 
Go to file
Sam Batschelet 973882f697 version: 3.3.27
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
2021-10-15 08:32:31 -04:00
.github *: eschew you from documentation 2017-03-06 11:40:46 -08:00
Documentation pkg: file stat warning 2020-08-24 11:32:31 -04:00
alarm *: update LICENSE header 2016-05-12 20:51:48 -07:00
auth wal: fix panic when decoder not set 2020-06-27 17:23:17 -04:00
client client: Switch to case sensitive unmarshalling to be compatible with ugorji 2019-04-25 15:45:49 -04:00
clientv3 clientv3: get AuthToken automatically when clientConn is ready. 2020-09-30 17:17:46 +08:00
compactor compactor: simplify interval logic on periodic compactor 2018-03-26 05:37:31 -07:00
contrib *: fix naked returns 2017-11-10 18:46:15 -08:00
discovery Discovery: do not allow passing negative cluster size 2020-06-26 14:04:51 -04:00
embed auth: Customize simpleTokenTTL settings. 2020-06-25 20:17:49 +08:00
error *: move v2http handlers without /v2 prefix to etcdhttp 2017-07-07 18:35:57 -07:00
etcdctl etcdctl, etcdmain: warn about --insecure-skip-tls-verify options 2020-06-22 19:53:45 -04:00
etcdmain pkg: consider umask when use MkdirAll 2020-07-07 12:02:55 -04:00
etcdserver etcdserver: change protobuf field type from int to int64 (#12000) 2020-08-13 15:55:41 -07:00
functional *: fix gofmt 2019-08-19 20:22:15 -07:00
hack *: remove unused env vars 2018-03-08 01:35:36 -08:00
integration *: fix cherry-pick conflict 2020-04-06 10:47:14 +08:00
lease *: regenerate proto 2019-08-14 01:22:23 -07:00
logos logos: add SVG and PNG logos 2014-12-18 14:59:06 -08:00
mvcc mvcc: chanLen 1024 is to biger,and it used more memory. 128 seems to be enough. Sometimes the consumption speed is more than the production speed. 2020-06-25 19:51:51 +08:00
pkg pkg/fileutil: fix constant for linux locking 2020-12-14 10:53:41 -08:00
proxy proxy/grpcproxy: add return on error for metrics handler 2020-03-16 12:06:33 -04:00
raft raft: fix compile error in "Panic" 2019-08-14 04:05:07 -07:00
rafthttp rafthttp: log snapshot downloads 2020-05-20 11:01:13 -07:00
scripts scripts/release: logging release version 2020-08-18 11:45:15 -07:00
snap etcdserver,wal: fix inconsistencies in WAL and snapshot 2020-05-18 02:26:57 -07:00
snapshot snapshot: remove tests 2018-04-12 15:24:02 -07:00
store *: disable gRPC client logs in tests 2017-11-11 20:56:00 -08:00
tests Add cluster version fix #11233, #11254, #11265 2019-10-16 13:27:07 -07:00
vendor Update grpc-gateway to 1.3.1 (#11843) 2020-05-06 15:32:08 -07:00
version version: 3.3.27 2021-10-15 08:32:31 -04:00
wal wal: fix panic when decoder not set 2020-06-27 17:23:17 -04:00
.dockerignore Add .dockerignore to avoid including .git in docker build context 2014-08-15 16:38:29 +08:00
.gitignore gitignore: track vendor directory 2019-08-15 15:00:46 -07:00
.godir create .godir 2014-11-18 15:01:57 -08:00
.header .header: update to 'etcd Authors' 2016-05-12 20:56:50 -07:00
.travis.yml travis.yaml: use Go 1.12.12 2020-03-18 17:21:49 -07:00
.words words: whitelist "racey" 2020-03-18 17:23:16 -07:00
CODE_OF_CONDUCT.md *: add code of conduct 2017-06-15 17:04:45 -07:00
CONTRIBUTING.md Documentation: point contributing irc channel to #etcd 2017-07-14 10:56:09 -07:00
DCO docs(readme/contrib): clean up README, merge changes from CONTRIBUTING.md and split out DCO 2014-04-04 10:58:34 -07:00
Dockerfile *: separate Dockerfile for quay build trigger 2016-06-24 12:55:10 -07:00
Dockerfile-functional-tester Dockerfile-functional-tester: initial commit 2018-02-06 10:06:25 -08:00
Dockerfile-release Dockerfile: bump debian bullseye-20210927 2021-10-04 00:48:07 -04:00
Dockerfile-release.arm64 Dockerfile: bump debian bullseye-20210927 2021-10-04 00:48:07 -04:00
Dockerfile-release.ppc64le Dockerfile: bump debian bullseye-20210927 2021-10-04 00:48:07 -04:00
Dockerfile-test Dockerfile-test: use forked version of gocovmerge 2017-12-05 17:17:17 -08:00
LICENSE feat(*): initial commit 2014-01-19 12:25:11 -08:00
MAINTAINERS MAINTAINERS: add Fanmin 2017-02-23 14:38:14 -08:00
Makefile *: test with Go 1.12.9 2019-08-15 14:42:32 -07:00
NOTICE feat(*): initial commit 2014-01-19 12:25:11 -08:00
Procfile Procfile: use grpc-proxy instead of v2 proxy 2017-10-03 09:18:56 -07:00
Procfile.v2 Documentation/v2: add Procfile.v2 for proxy 2017-10-03 09:22:31 -07:00
README.md README: add "Community meetings" 2017-12-15 14:37:37 -08:00
ROADMAP.md ROADMAP: make 'release-3.2' stable branch 2017-05-24 14:31:43 -07:00
V2Procfile Procfile: v3 as default 2016-05-23 11:59:23 -07:00
bill-of-materials.json bom: regenerate 2019-08-19 20:35:44 -07:00
bill-of-materials.override.json etcd: Replace ghodss/yaml with sigs.k8s.io/yaml 2019-05-29 23:03:16 +05:30
build build: remove tools 2019-08-14 09:32:10 -07:00
build.bat vendor: only vendor on emitted binaries 2016-04-05 21:01:16 -07:00
build.ps1 build: add option to enable binaries stripping for windows 2016-10-20 00:52:57 +05:30
cover test, scripts: use /usr/bin/env to find bash 2015-08-08 20:52:53 -06:00
etcd.conf.yml.sample Documentation: change "key file" to "cert file" 2017-11-20 00:44:32 -05:00
functional.yaml functional: add back, travis 2019-08-14 09:32:10 -07:00
glide.lock Update grpc-gateway to 1.3.1 (#11843) 2020-05-06 15:32:08 -07:00
glide.yaml Update grpc-gateway to 1.3.1 (#11843) 2020-05-06 15:32:08 -07:00
main.go *: update LICENSE header 2016-05-12 20:51:48 -07:00
main_test.go *: remove os.Kill from signal.Notify 2017-04-07 10:52:54 -07:00
meeting.ics README: add "Community meetings" 2017-12-15 14:37:37 -08:00
test test: do not run "v2store" tests 2019-08-14 11:12:46 -07:00

README.md

etcd

Go Report Card Coverage Build Status Travis Build Status Semaphore Godoc Releases LICENSE

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.

the etcd v2 documentation has moved

etcd Logo

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, and the development team stands behind it in critical deployment scenarios, where etcd is frequently teamed with applications such as Kubernetes, fleet, locksmith, vulcand, Doorman, and many others. Reliability is further ensured by rigorous testing.

See etcdctl for a simple command line client.

Community meetings

etcd contributors and maintainers have bi-weekly meetings at 11:00 AM (USA Pacific) on Tuesdays. There is an iCalendar format for the meetings here. Anyone is welcome to join via Zoom or audio-only: +1 669 900 6833. An initial agenda will be posted to the shared Google docs a day before each meeting, and everyone is welcome to suggest additional topics or other agendas.

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, rkt, and Docker. Instructions for using these binaries are on the GitHub releases page.

For those wanting to try the very latest version, build the latest version of etcd from the master branch. This first needs Go installed (version 1.9+ 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 guide.

Running etcd

First start a single-member cluster of etcd.

If etcd is installed using the pre-built release binaries, run it from the installation location as below:

/tmp/etcd-download-test/etcd

The etcd command can be simply run as such if it is moved to the system path as below:

mv /tmp/etcd-download-test/etcd /usr/locale/bin/

etcd

If etcd is build from the master branch, run it as below:

./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_API=3 etcdctl put mykey "this is awesome"
ETCDCTL_API=3 etcdctl get mykey

That's it! etcd is now running and serving client requests. For more

etcd TCP ports

The official etcd ports are 2379 for client requests, and 2380 for peer communication.

Running a local etcd cluster

First install goreman, which manages Procfile-based applications.

Our Procfile script will set up a local example cluster. Start it with:

goreman start

This will bring up 3 etcd members infra1, infra2 and infra3 and etcd grpc-proxy, which runs locally and composes a cluster.

Every cluster member and proxy accepts key value reads and key value writes.

Running etcd on Kubernetes

To run an etcd cluster on Kubernetes, try etcd operator.

Next steps

Now it's time to dig into the full etcd API and other guides.

Contact

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.

Reporting bugs

See reporting bugs for details about reporting any issues.

License

etcd is under the Apache 2.0 license. See the LICENSE file for details.