copy of etcd repository
 
 
 
 
 
 
Go to file
Xiang Li 0fa754d90e etcdmain: add config.go 2014-12-19 18:33:19 -08:00
Documentation *: change remaining 0.5 references -> 2.0 2014-12-18 16:14:42 -08:00
Godeps dep: use vendored imports in codegangsta/cli 2014-11-20 10:19:13 -08:00
client discovery: discovery will try forever when there is a timeout. 2014-12-10 23:08:24 -08:00
discovery discovery: fix watch index 2014-12-13 11:15:24 -08:00
error error: use application/json as the content-type 2014-11-04 12:08:18 -08:00
etcdctl etcdctl: add environment support to certs args 2014-12-16 16:18:36 +01:00
etcdmain etcdmain: add config.go 2014-12-19 18:33:19 -08:00
etcdserver *: change remaining 0.5 references -> 2.0 2014-12-18 16:14:42 -08:00
hack etcdmain: simplify proxy start logic 2014-11-05 11:41:03 -08:00
integration integration: improve member tests 2014-12-04 17:37:44 -08:00
logos logos: add SVG and PNG logos 2014-12-18 14:59:06 -08:00
migrate *: change remaining 0.5 references -> 2.0 2014-12-18 16:14:42 -08:00
pkg pkg/fileutil: sort filenames during ReadDir 2014-12-18 16:36:11 -08:00
proxy proxy: add a todo for logging 2014-11-10 16:37:15 -08:00
raft raft: flush the commit to fix a race in test 2014-12-18 17:10:37 -08:00
rafthttp etcdserver: fix leader stats 2014-12-15 16:50:03 -08:00
scripts Documentation: update to 2.0 2014-12-18 10:18:26 -08: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
version version: bump to v2.0.0-rc.1 2014-12-18 10:27:29 -08:00
wal pkg/fileutil: sort filenames during ReadDir 2014-12-18 16:36:11 -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 version disclaimer 2014-12-18 16:22:14 -08:00
build build: statically compile etcdctl binary 2014-12-02 10:24:05 -05: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 test: add fileutil to test 2014-12-14 19:34:54 -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.

Unless otherwise noted, the etcd documentation below and in Documentation/ refers to configuring and running 0.4.x releases. Documentation related to the 2.0.0 release candidates can be found in the Documentation/2.0 directory.

etcd Logo

README version 0.4.6

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.