Yicheng Qin 176222a2f4 *: bump to v2.0.13+git | vor 9 Jahren | |
---|---|---|
Documentation | vor 9 Jahren | |
Godeps | vor 9 Jahren | |
client | vor 9 Jahren | |
discovery | vor 9 Jahren | |
error | vor 9 Jahren | |
etcdctl | vor 9 Jahren | |
etcdmain | vor 9 Jahren | |
etcdserver | vor 9 Jahren | |
hack | vor 10 Jahren | |
integration | vor 9 Jahren | |
logos | vor 10 Jahren | |
migrate | vor 9 Jahren | |
pkg | vor 9 Jahren | |
proxy | vor 9 Jahren | |
raft | vor 9 Jahren | |
rafthttp | vor 9 Jahren | |
scripts | vor 9 Jahren | |
snap | vor 9 Jahren | |
store | vor 9 Jahren | |
tools | vor 9 Jahren | |
version | vor 9 Jahren | |
wal | vor 9 Jahren | |
.dockerignore | vor 10 Jahren | |
.gitignore | vor 10 Jahren | |
.godir | vor 10 Jahren | |
.header | vor 9 Jahren | |
.travis.yml | vor 9 Jahren | |
CONTRIBUTING.md | vor 10 Jahren | |
DCO | vor 10 Jahren | |
Dockerfile | vor 10 Jahren | |
LICENSE | vor 11 Jahren | |
MAINTAINERS | vor 10 Jahren | |
NOTICE | vor 10 Jahren | |
Procfile | vor 9 Jahren | |
README.md | vor 9 Jahren | |
build | vor 9 Jahren | |
cover | vor 10 Jahren | |
main.go | vor 9 Jahren | |
test | vor 9 Jahren |
etcd is a distributed, consistent key value store for shared configuration and service discovery with a focus on being:
etcd is written in Go and uses the Raft consensus algorithm to manage a highly-available replicated log.
See etcdctl for a simple command line client. Or feel free to just use curl, as in the examples below.
If you're considering etcd for production use, please see: production-ready.md
The latest release and setup instructions are available at GitHub.
First start a single-member cluster of etcd:
./bin/etcd
This will bring up etcd listening on port 4001 for client communication and on port 7001 for server-to-server communication.
Next, let's set a single key, and then retrieve it:
curl -L http://127.0.0.1:4001/v2/keys/mykey -XPUT -d value="this is awesome"
curl -L http://127.0.0.1:4001/v2/keys/mykey
You have successfully started an etcd and written a key to the store.
First install goreman, which manages Procfile-based applications.
Our Profile script will set up a local example cluster. You can 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.
You can write a key to the cluster and retrieve the value back from any member or proxy.
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.
etcd uses semantic versioning New minor versions may add additional features to the API.
You can get the version of etcd by issuing a request to /version:
curl -L http://127.0.0.1:4001/version
The v2
API responses should not change after the 2.0.0 release but new features will be added over time.
etcd has known issues on 32-bit systems due to a bug in the Go runtime. See #358 for more information.
etcd is under the Apache 2.0 license. See the LICENSE file for details.