copy of etcd repository
 
 
 
 
 
 
Go to file
Rob Szumski a7eeb01bc8 fix(docs): reference correct cors flag 2014-01-07 17:03:11 -08:00
Documentation fix(docs): reference correct cors flag 2014-01-07 17:03:11 -08:00
bench fix bench 2013-12-21 16:44:28 +08:00
error feat(v2/errors): Use more appropriate HTTP status codes for error cases. 2013-12-21 21:39:19 -05:00
fixtures/ca fix(fixtures/ca): make the certificates work 2013-11-13 11:45:20 -08:00
log Refactor commands. 2013-10-11 01:02:38 -06:00
mod Merge branch 'master' of https://github.com/coreos/etcd into mod-leader 2013-12-16 07:47:31 -07:00
scripts fix (scripts/release-version.ps1): fix windows build 2014-01-01 21:16:40 -08:00
server chore(server): remove web url 2014-01-05 20:39:39 -08:00
store refactor(node_extern.go) remove unused prevValue field 2014-01-01 20:01:29 +08:00
tests Merge pull request #408 from xiangli-cmu/compareAndDelete 2013-12-25 13:16:27 -08:00
third_party doc fix grammar issue 2013-12-09 11:33:55 -05:00
.gitignore fix(bench): initial commit 2013-12-20 15:19:02 -08:00
.header chore(*.go): add copyright notice 2013-11-08 14:04:15 -08:00
.travis.yml hack(travis): temporarily fix travis 2013-12-09 21:46:55 -08:00
CHANGELOG v0.2.0-rc1 2013-11-13 22:34:13 -05:00
CONTRIBUTING.md chore(CONTRIBUTING): make the allowed types a list 2013-11-11 11:57:38 -08:00
Dockerfile Merge remote-tracking branch 'upstream/master' into feature-parametric-timeout 2013-12-06 10:13:33 +00:00
LICENSE License project under the Apache License Version 2.0 2013-07-31 17:39:03 +00:00
README.md fix(README): use 4002 not 4001 2014-01-07 15:57:18 -08:00
build fix(bench): initial commit 2013-12-20 15:19:02 -08:00
build.ps1 fix(build.ps1): not required to be admin to run build in windows 2014-01-01 22:23:07 -08:00
etcd.go Add Tuning section to README. 2013-12-18 16:40:29 -07:00
go_version.go feat(go_version): check go version at build time 2013-08-16 15:14:19 -07:00
profile.go Config clean up and usage messaging. 2013-11-20 10:52:01 -07:00
test.sh Add mod/lock version. 2013-12-04 22:24:04 -07:00

README.md

etcd

README version 0.2.0

Build Status

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

  • 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.

Contact

Getting Started

Getting etcd

The latest release and setup instructions are available at Github.

Building

You can build etcd from source:

git clone https://github.com/coreos/etcd
cd etcd
./build

This will generate a binary in the base directory called ./etcd.

NOTE: you need go 1.1+. Please check your installation with

go version

Running

First start a single machine cluster of etcd:

./etcd

This will bring up etcd listening on port 4001 for client communication and on port 7001 for server-to-server communication.

Next lets 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 time to dig into the full etcd API and other guides.

Next Steps

Contributing

See CONTRIBUTING for details on submitting patches and contacting developers via IRC and mailing lists.

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

Clients are encouraged to use the v2 API. The v1 API will not change.

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

During the pre-v1.0.0 series of releases we may break the API as we fix bugs and get feedback.

License

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