1
0
Fork 0
arangodb/3rdParty/etcd
Jan Steemann 7e08e92882 fixed etcd crashes on 32 bit 2014-05-09 12:20:52 +02:00
..
Documentation Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
bench Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
config Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
contrib Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
discovery Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
error Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
fixtures/ca Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
http Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
log Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
metrics Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
mod Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
pkg Forgot two libraries. 2014-02-26 23:27:04 +01:00
scripts Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
server Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
store fixed etcd crashes on 32 bit 2014-05-09 12:20:52 +02:00
tests Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
third_party fixed etcd crashes on 32 bit 2014-05-09 12:20:52 +02:00
.header Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
CHANGELOG Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
CONTRIBUTING.md Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
Dockerfile Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
LICENSE Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
README.md Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
build Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
clean Sort out clean script for etcd. 2014-02-27 08:47:13 +01:00
etcd.go Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
go_version.go Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
profile.go Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
test.sh Add etcd v0.3.0. 2014-02-26 22:48:54 +01:00
triagens-build.bat simple batch script for compiling etcd 2014-03-06 15:39:15 +01: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 called ./bin/etcd.

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

go version

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

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.