copy of etcd repository
 
 
 
 
 
 
Go to file
Brandon Philips aeb9e0633a Merge pull request #641 from mdlayher/patch-1
docs(Documentation/api): fix JSON spacing, syntax highlighting
2014-03-22 09:30:21 -07:00
Documentation docs(Documentation/api): fix JSON spacing, syntax highlighting 2014-03-20 02:36:35 -04:00
bench chore(*): make everything use goven 2014-02-01 23:44:18 -08:00
config refactor(listener) refactor listener related code 2014-03-13 15:47:27 -07:00
contrib feat(metrics): Add documentation and contrib scripts 2014-01-20 15:37:31 -08:00
discovery fix(discovery): use prevExist instead of prevValue=init 2014-02-05 15:14:57 -08:00
error Revert "Better error message when setting values on directories" 2014-01-23 11:22:11 -08:00
fixtures/ca chore(fixtures/ca): make all certificates generated by etcd-ca 2014-03-17 12:32:55 -07:00
http fix(v2): Use case-insensitive check on bool query params 2014-02-07 14:29:08 -08:00
log chore(*): make everything use goven 2014-02-01 23:44:18 -08:00
metrics chore(*): make everything use goven 2014-02-01 23:44:18 -08:00
mod fix(mod/lock): correct watch index to remove cpu load 2014-02-26 17:26:25 -07:00
pkg fix(store): make NodeExtern.Value a *string 2014-02-18 00:50:44 -05:00
scripts feat(scripts): use zip for windows and darwin 2014-02-09 12:11:14 -08:00
server fix(test/server): avoid watch test timeout by moving json decode 2014-03-18 08:49:14 -07:00
store fix(store): corrected CAS and CAD fail cause in response 2014-03-08 14:50:34 +07:00
tests Merge pull request #621 from unihorn/34 2014-03-17 13:47:59 -07:00
third_party fix(transporter): CancelRequest doesn't work on HTTPS connections blocked 2014-02-27 14:31:46 -08:00
.gitignore feat(Vagrantfile): Add Vagrantfile for easy start 2014-03-15 12:48:48 -07:00
.header chore(*.go): add copyright notice 2013-10-07 09:48:28 -07:00
CHANGELOG doc(CHANGELOG): document v0.3.0 2014-02-07 15:54:45 -08:00
CONTRIBUTING.md fix(CONTRIBUTING): minor grammar fixes 2014-03-06 14:12:51 -08:00
Dockerfile etcd is in the bin directory, fixes bug with the docker image not working 2014-01-15 12:46:09 -05:00
LICENSE License project under the Apache License Version 2.0 2013-07-31 17:39:03 +00:00
README.md feat(Vagrantfile): Add Vagrantfile for easy start 2014-03-15 12:48:48 -07:00
Vagrantfile feat(Vagrantfile): Add Vagrantfile for easy start 2014-03-15 12:48:48 -07:00
build fix(build/test.sh): use new GOPATH setup 2014-02-02 16:57:36 -08:00
etcd.go refactor(listener) refactor listener related code 2014-03-13 15:47:27 -07:00
go_version.go Download and build Go 1.2 in the Dockerfile. 2014-01-14 18:19:37 -08:00
profile.go Config clean up and usage messaging. 2013-11-20 10:52:01 -07:00
test.sh fix(server/v1): don't fail put on new v1 key 2014-02-10 18:59:56 -08:00

README.md

etcd

README version 0.3.0

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.

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 called ./bin/etcd.

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

go version

See the development tools documentation for alternative build methods like using Vagrant.

Running

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

Contact

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.