Gyuho Lee cc959b4e5a Merge pull request #11195 from andyliuliming/release-3.2-cherry | пре 5 година | |
---|---|---|
.github | пре 7 година | |
Documentation | пре 5 година | |
alarm | пре 8 година | |
auth | пре 5 година | |
client | пре 7 година | |
clientv3 | пре 6 година | |
cmd | пре 6 година | |
compactor | пре 7 година | |
contrib | пре 7 година | |
discovery | пре 7 година | |
e2e | пре 5 година | |
embed | пре 6 година | |
error | пре 7 година | |
etcdctl | пре 5 година | |
etcdmain | пре 5 година | |
etcdserver | пре 6 година | |
functional | пре 6 година | |
hack | пре 6 година | |
integration | пре 6 година | |
lease | пре 6 година | |
logos | пре 10 година | |
mvcc | пре 5 година | |
pkg | пре 5 година | |
proxy | пре 5 година | |
raft | пре 7 година | |
rafthttp | пре 6 година | |
scripts | пре 5 година | |
snap | пре 6 година | |
snapshot | пре 6 година | |
store | пре 7 година | |
tests | пре 6 година | |
version | пре 5 година | |
wal | пре 7 година | |
.dockerignore | пре 10 година | |
.gitignore | пре 7 година | |
.godir | пре 10 година | |
.header | пре 8 година | |
.travis.yml | пре 6 година | |
CONTRIBUTING.md | пре 7 година | |
DCO | пре 10 година | |
Dockerfile | пре 8 година | |
Dockerfile-release | пре 7 година | |
Dockerfile-release.arm64 | пре 7 година | |
Dockerfile-release.ppc64le | пре 7 година | |
Dockerfile-test | пре 7 година | |
LICENSE | пре 11 година | |
MAINTAINERS | пре 7 година | |
Makefile | пре 6 година | |
NEWS | пре 7 година | |
NOTICE | пре 10 година | |
Procfile | пре 8 година | |
README.md | пре 7 година | |
ROADMAP.md | пре 7 година | |
V2Procfile | пре 8 година | |
bill-of-materials.json | пре 7 година | |
bill-of-materials.override.json | пре 7 година | |
build | пре 7 година | |
build.bat | пре 8 година | |
build.ps1 | пре 8 година | |
cover | пре 9 година | |
etcd.conf.yml.sample | пре 7 година | |
functional.yaml | пре 6 година | |
glide.lock | пре 6 година | |
glide.yaml | пре 6 година | |
main.go | пре 8 година | |
main_test.go | пре 7 година | |
test | пре 6 година |
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 is a distributed reliable key-value store for the most critical data of a distributed system, with a focus on being:
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.
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.8+ 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.
First start a single-member cluster of etcd:
./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
The official etcd ports are 2379 for client requests, and 2380 for peer communication.
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 proxy proxy
, which runs locally and composes a cluster.
Every cluster member and proxy accepts key value reads and key value writes.
To run an etcd cluster on Kubernetes, try etcd operator.
Now it's time to dig into the full etcd API and other guides.
See CONTRIBUTING for details on submitting patches and the contribution workflow.
See reporting bugs for details about reporting any issues.
etcd is under the Apache 2.0 license. See the LICENSE file for details.