copy of etcd repository
 
 
 
 
 
 
Go to file
Jonathan Boulle 28feb073b5 README: update to reflect doc changes 2015-01-14 22:17:29 -08:00
Documentation Merge pull request #2094 from yichengq/298 2015-01-14 17:29:25 -08:00
Godeps godeps: bump go-etcd to 6aa2da5 2014-12-30 20:12:48 -08:00
client discovery: discovery will try forever when there is a timeout. 2014-12-10 23:08:24 -08:00
discovery *: move srv into pkg discovery 2014-12-24 21:37:20 -08:00
error error: remove unused Message func 2015-01-13 10:40:06 -08:00
etcdctl *: move etcdserver/idutil -> pkg/idutil 2015-01-13 11:54:51 -08:00
etcdmain Merge pull request #2071 from yichengq/287 2015-01-12 15:59:37 -08:00
etcdserver Merge pull request #2083 from yichengq/293 2015-01-13 13:04:50 -08:00
hack etcdmain: simplify proxy start logic 2014-11-05 11:41:03 -08:00
integration integration: fix force cluster test 2015-01-14 16:40:09 -08:00
logos logos: add SVG and PNG logos 2014-12-18 14:59:06 -08:00
migrate migrate/cmd/etcd-dump-logs: fix building 2015-01-12 12:17:41 -08:00
pkg pkg/transport: tests always listen on 127.0.0.1 2015-01-14 13:14:57 -05:00
proxy proxy: add a todo for logging 2014-11-10 16:37:15 -08:00
raft raft: introduce MsgHeartbeatResp. 2015-01-14 17:34:10 -05:00
rafthttp Merge pull request #2036 from xiang90/trtr 2015-01-05 14:08:51 -08:00
scripts build-aci: change 'val' abbreviation to 'value' 2015-01-08 09:52:21 +01:00
snap snap: error on empty snapshot 2014-12-08 21:45:28 -08:00
store store: return utc time to user 2014-12-11 16:24:33 -08:00
tools wal: record and check snapshot 2015-01-06 16:27:40 -08:00
version version: bump to v2.0.0-rc.1 2014-12-18 10:27:29 -08:00
wal wal: remove unused encoder.buffered func 2015-01-09 14:59:46 -08:00
.dockerignore Add .dockerignore to avoid including .git in docker build context 2014-08-15 16:38:29 +08:00
.gitignore etcd: use old default data-dir format 2014-10-24 16:41:42 -07:00
.godir create .godir 2014-11-18 15:01:57 -08:00
.header chore(*.go): add copyright notice 2013-10-07 09:48:28 -07:00
.travis.yml Disable unused sudo-ability from Travis in hopes of faster startup 2014-12-12 19:39:09 -05:00
CHANGELOG *: typofixes 2014-12-04 22:51:19 +00:00
CONTRIBUTING.md CONTRIBUTING: update link to style guide 2014-09-18 15:03:55 -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 Dockerfile: initial commit 2014-10-27 16:43:27 -07:00
LICENSE feat(*): initial commit 2014-01-19 12:25:11 -08:00
MAINTAINERS MAINTAINERS: add Brandon Philips 2014-09-07 19:45:34 -07:00
NOTICE feat(*): initial commit 2014-01-19 12:25:11 -08:00
Procfile *: fix Procfile 2014-11-12 17:54:09 -08:00
README.md README: update to reflect doc changes 2015-01-14 22:17:29 -08:00
build tools: move etcd-migrate to tools 2014-12-30 22:48:47 -08:00
cover scripts: add build, cover and update test 2014-09-08 23:09:49 -07:00
main.go etcd: move main logic to etcdmain subpackage 2014-10-29 18:43:22 -07:00
test *: move etcdserver/idutil -> pkg/idutil 2015-01-13 11:54:51 -08:00

README.md

etcd

Build Status Docker Repository on Quay.io

Release Candidate Disclaimer

The current master branch of etcd is tracking the forthcoming 2.0.0 release. We encourage users to work with the latest release candidate, but those looking for a stable release should obtain the latest 0.4.x release, 0.4.6.

etcd Logo

A highly-available key value store for shared configuration and service discovery. etcd is inspired by Apache ZooKeeper and doozer, with a focus on being:

  • Simple: curl'able user facing API (HTTP+JSON)
  • Secure: optional SSL client cert authentication
  • Fast: benchmarked 1000s of writes/s per instance
  • Reliable: properly distributed using Raft

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

Getting Started

Getting etcd

The latest release and setup instructions are available at GitHub.

Running etcd

First start a single-machine 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 on a single machine and written a key to the store. Now it's time to dig into the full etcd API and other guides.

Next Steps

Contact

Contributing

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

Project Details

Versioning

Service Versioning

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

API Versioning

The v2 API responses should not change after the 0.2.0 release but new features will be added over time.

The v1 API has been deprecated and will not be supported. It will be removed in the 2.0.0 release.

32-bit systems

etcd has known issues on 32-bit systems due to a bug in the Go runtime. See #358 for more information.

License

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